Skip to content

_nodes/stats should not fail due to concurrent AlreadyClosedException#25016

Merged
pickypg merged 2 commits intoelastic:masterfrom
pickypg:fix/catch-alreadyclosedexception
Jun 28, 2017
Merged

_nodes/stats should not fail due to concurrent AlreadyClosedException#25016
pickypg merged 2 commits intoelastic:masterfrom
pickypg:fix/catch-alreadyclosedexception

Conversation

@pickypg
Copy link
Copy Markdown
Member

@pickypg pickypg commented Jun 2, 2017

This catches AlreadyClosedException during stats calls to avoid failing a _nodes/stats request because of the ignorable, concurrent index closure.

Part of #23099

@pickypg
Copy link
Copy Markdown
Member Author

pickypg commented Jun 2, 2017

please test this

Copy link
Copy Markdown
Contributor

@bleskes bleskes left a comment

Choose a reason for hiding this comment

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

Code is good. Any chance we can have a test for this?

@pickypg
Copy link
Copy Markdown
Member Author

pickypg commented Jun 6, 2017

@bleskes I'll refactor the method so that one exists that accepts the iterator for the IndexServices and then test it that way.

@bleskes
Copy link
Copy Markdown
Contributor

bleskes commented Jun 16, 2017

@pickypg where do we stand on this one?

pickypg added 2 commits June 27, 2017 17:24
This catches `AlreadyClosedException` during `stats` calls to avoid
failing a `_nodes/stats` request because of the ignorable, concurrent
index closure.
@pickypg pickypg force-pushed the fix/catch-alreadyclosedexception branch from beb7afd to afcfb57 Compare June 27, 2017 21:38
@pickypg pickypg added the v5.5.1 label Jun 27, 2017
@pickypg
Copy link
Copy Markdown
Member Author

pickypg commented Jun 27, 2017

@bleskes Sorry, let this one linger. I've updated to add a test, which required refactoring the code to allow it to be a little more testable.

@pickypg pickypg merged commit f2eeceb into elastic:master Jun 28, 2017
@pickypg pickypg deleted the fix/catch-alreadyclosedexception branch June 28, 2017 14:08
pickypg added a commit that referenced this pull request Jun 28, 2017
…#25016)

This catches `AlreadyClosedException` during `stats` calls to avoid failing a `_nodes/stats` request because of the ignorable, concurrent index closure.
pickypg added a commit that referenced this pull request Jun 28, 2017
…#25016)

This catches `AlreadyClosedException` during `stats` calls to avoid failing a `_nodes/stats` request because of the ignorable, concurrent index closure.
pickypg added a commit that referenced this pull request Jun 28, 2017
…#25016)

This catches `AlreadyClosedException` during `stats` calls to avoid failing a `_nodes/stats` request because of the ignorable, concurrent index closure.
@pickypg
Copy link
Copy Markdown
Member Author

pickypg commented Jun 28, 2017

5.x/5.6: b526704
5.5: b71f3c0
5.4: 1320a31

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.

4 participants