Skip to content

Validate scorch routine options when creating or opening a Bleve Index.#2170

Merged
CascadingRadium merged 2 commits intomasterfrom
validate
Mar 26, 2025
Merged

Validate scorch routine options when creating or opening a Bleve Index.#2170
CascadingRadium merged 2 commits intomasterfrom
validate

Conversation

@CascadingRadium
Copy link
Member

  • If a malformed setting is used in the persistor/merger options, an async error is thrown leading to a crash loop in a live system.
  • This PR adds a validation step to ensure that the options are valid before creating/opening the index.

- If a malformed setting is used in the persistor/merger options, an async error is thrown leading to a crash loop in a live system.
- This PR adds a validation step to ensure that the options are valid before creating/opening the index.
Copy link
Member

@abhinavdangeti abhinavdangeti left a comment

Choose a reason for hiding this comment

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

@CascadingRadium Good commit - it seems rather easy to add a unit test for this though, so let's add one along to exercise the code addition shall we.

Copy link
Member

@abhinavdangeti abhinavdangeti left a comment

Choose a reason for hiding this comment

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

Looks great 👍🏼

@CascadingRadium CascadingRadium merged commit c26a257 into master Mar 26, 2025
9 checks passed
@CascadingRadium CascadingRadium deleted the validate branch March 26, 2025 16:10
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.

4 participants