Skip to content

Fix X-Pack SchedulerEngine Shutdown#48951

Merged
original-brownbear merged 1 commit intoelastic:masterfrom
original-brownbear:fix-xpack-scheduler
Nov 13, 2019
Merged

Fix X-Pack SchedulerEngine Shutdown#48951
original-brownbear merged 1 commit intoelastic:masterfrom
original-brownbear:fix-xpack-scheduler

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor 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 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