Skip to content

Conversation

@original-brownbear
Copy link
Contributor

There is a JVM bug causing Thread#suspend calls to randomly take
multiple seconds breaking these tests that call the method numerous times
in a loop. Increasing the timeout would will not work since we may call
suspend tens if not hundreds of times and even a small number of them
experiencing the blocking will lead to multiple minutes of waiting.

This PR detects the specific issue by timing the Thread#suspend calls and
skips the remainder of the test if it timed out because of the JVM bug.

Closes #50047

backport of #50731

There is a JVM bug causing `Thread#suspend` calls to randomly take
multiple seconds breaking these tests that call the method numerous times
in a loop. Increasing the timeout would will not work since we may call
`suspend` tens if not hundreds of times and even a small number of them
experiencing the blocking will lead to multiple minutes of waiting.

This PR detects the specific issue by timing the `Thread#suspend` calls and
skips the remainder of the test if it timed out because of the JVM bug.

Closes elastic#50047
@original-brownbear original-brownbear added :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. backport labels Jan 14, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Distributed)

@original-brownbear original-brownbear merged commit 6e8ea7a into elastic:7.x Jan 14, 2020
@original-brownbear original-brownbear deleted the 50731-7.x branch January 14, 2020 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants