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

Do not fail if flush is called before any writes #1901

Merged
merged 2 commits into from Feb 22, 2022

Conversation

masseyke
Copy link
Member

@masseyke masseyke commented Feb 8, 2022

This commit logs a warning instead of throwing an exception if an attempt to flush before writing is made (which our
Storm implementation can do).
Closes #1357

@masseyke
Copy link
Member Author

masseyke commented Feb 8, 2022

It looks like this was caused by an assertion added for #1158. But in the way EsBolt is written, it is possible to call flush before any data is ever written, and there's no need to fail in that case.

Copy link
Member

@jbaiera jbaiera left a comment

Choose a reason for hiding this comment

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

LGTM

@masseyke masseyke merged commit f70381f into elastic:master Feb 22, 2022
@masseyke masseyke deleted the fix/rest-repo-flush-before-write branch February 22, 2022 20:31
@jbaiera jbaiera added the :Storm label May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot flush non-initialized write operation
2 participants