Skip to content

fix: added error handling for disk out of space exception#985

Merged
lucaseduoli merged 2 commits into
mainfrom
fix/no_space
Feb 18, 2026
Merged

fix: added error handling for disk out of space exception#985
lucaseduoli merged 2 commits into
mainfrom
fix/no_space

Conversation

@lucaseduoli

Copy link
Copy Markdown
Collaborator

This pull request adds improved error handling to the OpenSearch index initialization process. The main enhancement is that it now detects disk space issues (specifically the "flood-stage watermark" error) and provides a clear, actionable error message when disk usage prevents index creation.

Error handling improvements:

  • Wrapped the init_index function in a try-except block to catch exceptions during OpenSearch initialization.
  • Added specific handling for "disk usage exceeded" and "flood-stage watermark" errors by logging a clear message and raising an exception with instructions to free up disk space.

Closes #860

@edwinjosechittilappilly edwinjosechittilappilly left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lucaseduoli lucaseduoli merged commit 23133e7 into main Feb 18, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Upgrade to 0.2.3 tries to reingest default docs and gets stuck at onboarding; Then, cannot ingest knowledge after factory reset

2 participants