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

Fix X-Pack SchedulerEngine Shutdown #48951

Merged

Conversation

original-brownbear
Copy link
Member

We can have a race here where scheduleNextRun executes concurrently to stop
and so we run into a RejectedExecutionException that we don't catch and thus it
fails tests.
=> Fixed by ignoring these so long as they coincide with a scheduler shutdown

example failure: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+pull-request-2/10376/testReport/junit/org.elasticsearch.xpack.watcher.test.integration/HttpSecretsIntegrationTests/classMethod/

We can have a race here where `scheduleNextRun` executes concurrently to `stop`
and so we run into a `RejectedExecutionException` that we don't catch and thus it
fails tests.
=> Fixed by ignoring these so long as they coincide with a scheduler shutdown
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Features)

Copy link
Contributor

@jakelandis jakelandis left a comment

Choose a reason for hiding this comment

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

LGTM

@original-brownbear
Copy link
Member Author

Thanks Jake!

@original-brownbear original-brownbear merged commit b8d85cf into elastic:master Nov 13, 2019
@original-brownbear original-brownbear deleted the fix-xpack-scheduler branch November 13, 2019 19:27
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Nov 13, 2019
We can have a race here where `scheduleNextRun` executes concurrently to `stop`
and so we run into a `RejectedExecutionException` that we don't catch and thus it
fails tests.
=> Fixed by ignoring these so long as they coincide with a scheduler shutdown
original-brownbear added a commit that referenced this pull request Nov 13, 2019
We can have a race here where `scheduleNextRun` executes concurrently to `stop`
and so we run into a `RejectedExecutionException` that we don't catch and thus it
fails tests.
=> Fixed by ignoring these so long as they coincide with a scheduler shutdown
@original-brownbear original-brownbear restored the fix-xpack-scheduler branch August 6, 2020 18:36
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.

3 participants