Skip to content

Do not swallow exceptions in TimedRunnable#39856

Merged
ywelsch merged 3 commits intoelastic:masterfrom
ywelsch:do-not-swallow-exceptions
Mar 11, 2019
Merged

Do not swallow exceptions in TimedRunnable#39856
ywelsch merged 3 commits intoelastic:masterfrom
ywelsch:do-not-swallow-exceptions

Conversation

@ywelsch
Copy link
Copy Markdown
Contributor

@ywelsch ywelsch commented Mar 8, 2019

Executors of type fixed_auto_queue_size (i.e. search / search_throttled) wrap runnables into TimedRunnable, which is an AbstractRunnable. This is dangerous as it might silently swallow exceptions, and possibly miss calling a response listener. While this has not triggered any failures in the tests I have run so far, it might help uncover future problems.

Follow-up to #36137.

@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra

Copy link
Copy Markdown
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

LGTM.

Added one small nit. Thanks @ywelsch

@ywelsch ywelsch merged commit e500daf into elastic:master Mar 11, 2019
ywelsch added a commit that referenced this pull request Mar 11, 2019
Executors of type fixed_auto_queue_size (i.e. search / search_throttled) wrap runnables into
TimedRunnable, which is an AbstractRunnable. This is dangerous as it might silently swallow
exceptions, and possibly miss calling a response listener. While this has not triggered any failures in
the tests I have run so far, it might help uncover future problems.

Follow-up to #36137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants