Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete opensearch schema synchronously #83

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

eminano
Copy link
Collaborator

@eminano eminano commented Oct 24, 2024

This PR simplifies the search index delete by handling it synchronously instead of asynchronously.
With the current async behaviour, it was possible to delete an index after it had been recreated, causing "index not found" errors when subsequent data updates were received. By making it synchronous(with retries), we will prevent any further events from being applied until it completes, ensuring the delete happens before any subsequent recreation happens.

Closes #77

@eminano eminano requested a review from exekias October 24, 2024 10:52
Copy link
Member

@exekias exekias left a comment

Choose a reason for hiding this comment

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

nice!

@eminano eminano merged commit 6c2d7cf into main Oct 24, 2024
5 checks passed
@eminano eminano deleted the handle-schema-delete-synchronously branch October 24, 2024 14:34
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.

[Search Processor] Index not found after schema dropped
2 participants