Skip to content

Conversation

@original-brownbear
Copy link
Contributor

@original-brownbear original-brownbear commented May 9, 2019

  • When close becomes true while the management pool that would execute the Runnable here is being shut down, we run into an unhandeled EsRejectedExecutionException that fails tests
  • Found this while trying to reproduce IndexStatsIT#testFilterCacheStats fails #32506
    • Running the IndexStatsIT in a loop is a way of reproducing this

* When close becomes true while the management pool is shut down, we run
into an unhandled `EsRejectedExecutionException` that fails tests
* Found this while trying to reproduce #32506
   * Running the IndexStatsIT in a loop is a way of reproducing this
@original-brownbear original-brownbear added >non-issue :Distributed Indexing/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. v8.0.0 v7.2.0 labels May 9, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @original-brownbear.

@original-brownbear
Copy link
Contributor Author

thanks @dnhatn !

@original-brownbear original-brownbear merged commit d8417dc into elastic:master May 9, 2019
@original-brownbear original-brownbear deleted the fix-racy-exception-indices-service branch May 9, 2019 21:02
original-brownbear added a commit that referenced this pull request May 10, 2019
* When close becomes true while the management pool is shut down, we run
into an unhandled `EsRejectedExecutionException` that fails tests
* Found this while trying to reproduce #32506
   * Running the IndexStatsIT in a loop is a way of reproducing this
if (closed.get() == false) {
threadPool.schedule(this, interval, ThreadPool.Names.SAME);
try {
threadPool.schedule(this, interval, ThreadPool.Names.SAME);
Copy link
Contributor

Choose a reason for hiding this comment

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

easier to use scheduleUnlessShuttingDown?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh sorry! Didn't know about that method, will open cleanup PR in a sec.

gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
* When close becomes true while the management pool is shut down, we run
into an unhandled `EsRejectedExecutionException` that fails tests
* Found this while trying to reproduce elastic#32506
   * Running the IndexStatsIT in a loop is a way of reproducing this
original-brownbear added a commit that referenced this pull request Jun 24, 2019
@original-brownbear original-brownbear restored the fix-racy-exception-indices-service branch August 6, 2020 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Indexing/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. >non-issue v7.2.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants