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

[ci] MockTcpTransportTests.testNotifyOnShutdown #32863

Closed
andyb-elastic opened this issue Aug 14, 2018 · 1 comment · Fixed by #33061
Closed

[ci] MockTcpTransportTests.testNotifyOnShutdown #32863

andyb-elastic opened this issue Aug 14, 2018 · 1 comment · Fixed by #33061
Assignees
Labels
:Distributed Coordination/Network Http and internode communication implementations >test-failure Triaged test failures from CI

Comments

@andyb-elastic
Copy link
Contributor

Doesn't reproduce locally on master

https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+multijob-unix-compatibility/os=oraclelinux/2617/console

build-2617.txt

ERROR   0.10s J0 | MockTcpTransportTests.testNotifyOnShutdown <<< FAILURES!
   > Throwable #1: com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=432, name=elasticsearch[org.elasticsearch.transport.MockTcpTransportTests][generic][T#1], state=RUNNABLE, group=TGRP-MockTcpTransportTests]
   >    at __randomizedtesting.SeedInfo.seed([CBC399AED8F96471:26E336404194B6E]:0)
   > Caused by: java.lang.AssertionError: Can't move to stopped state when closed
   >    at __randomizedtesting.SeedInfo.seed([CBC399AED8F96471]:0)
   >    at org.elasticsearch.transport.AbstractSimpleTransportTestCase.lambda$testNotifyOnShutdown$10(AbstractSimpleTransportTestCase.java:775)
   >    at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:63)
   >    at org.elasticsearch.transport.TcpTransport$RequestHandler.doRun(TcpTransport.java:1497)
   >    at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:723)
   >    at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
   >    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   >    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   >    at java.lang.Thread.run(Thread.java:748)
./gradlew :test:framework:test -Dtests.seed=CBC399AED8F96471 -Dtests.class=org.elasticsearch.transport.MockTcpTransportTests -Dtests.method="testNotifyOnShutdown" -Dtests.security.manager=true -Dtests.locale=el-CY -Dtests.timezone=IST -Dcompiler.java=10 -Druntime.java=8
@andyb-elastic andyb-elastic added :Distributed Coordination/Network Http and internode communication implementations >test-failure Triaged test failures from CI labels Aug 14, 2018
@original-brownbear original-brownbear self-assigned this Aug 22, 2018
@original-brownbear
Copy link
Member

Looking into it, I can reproduce it by running the test in a loop (like 1/5k runs only though)

original-brownbear added a commit to original-brownbear/elasticsearch that referenced this issue Aug 22, 2018
* `foobar.txGet()` appears to return before `serviceB.stop()` returns, causing `ServiceB.close()` to run concurrently with the `stop` call and running into a race codition
* Closes elastic#32863
original-brownbear added a commit that referenced this issue Aug 23, 2018
* `foobar.txGet()` appears to return before `serviceB.stop()` returns, causing `ServiceB.close()` to run concurrently with the `stop` call and running into a race codition
* Closes #32863
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this issue Aug 31, 2018
* `foobar.txGet()` appears to return before `serviceB.stop()` returns, causing `ServiceB.close()` to run concurrently with the `stop` call and running into a race codition
* Closes elastic#32863
original-brownbear added a commit that referenced this issue Aug 31, 2018
* `foobar.txGet()` appears to return before `serviceB.stop()` returns, causing `ServiceB.close()` to run concurrently with the `stop` call and running into a race codition
* Closes #32863
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Network Http and internode communication implementations >test-failure Triaged test failures from CI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants