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

Add noop to request errors during cleanup #142

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

afharo
Copy link
Member

@afharo afharo commented Sep 19, 2024

We noticed a potential race condition that's hard to reproduce (it only happened 29 times in the last 30 days in our production environment). Kibana crashes with EPIPE during write operations (task manager writing the result of a task, task manager claiming tasks, Kibana during the setup phase, and multiple POST requests).
image

The lack of stack traces in Kibana (elastic/elasticsearch-js#2235) doesn't help to identify if it's related to one specific request or spread across multiple ones. But the gut feeling is a race condition where potentially, multiple errors are emitted at once and only one is caught, cleaning the listener, and the next one crashes the app.

Happy to close this PR if you think that this change is not safe/sensible.

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.

1 participant