Closed
Description
Seems to have been failing 4 times since 23-01-2022
Reproduction line:
./gradlew ':x-pack:plugin:ml:test' --tests "org.elasticsearch.xpack.ml.job.process.ProcessWorkerExecutorServiceTests.testAutodetectWorkerExecutorService_SubmitAfterShutdown" -Dtests.seed=3B1B1ED5C11E48D3 -Dtests.locale=es-CL -Dtests.timezone=America/New_York -Druntime.java=17
Applicable branches:
master, 8.1
Reproduces locally?:
No
Failure excerpt:
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=60, name=elasticsearch[AutodetectWorkerExecutorServiceTests][generic][T#1], state=RUNNABLE, group=TGRP-ProcessWorkerExecutorServiceTests]
at __randomizedtesting.SeedInfo.seed([3B1B1ED5C11E48D3:B9623FFDAA1F91C9]:0)
Caused by: java.lang.AssertionError: doRun should not be called after the worker is shutdown
at __randomizedtesting.SeedInfo.seed([3B1B1ED5C11E48D3]:0)
at org.junit.Assert.fail(Assert.java:88)
at org.elasticsearch.xpack.ml.job.process.ProcessWorkerExecutorServiceTests$1.doRun(ProcessWorkerExecutorServiceTests.java:59)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:776)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
at org.elasticsearch.xpack.ml.job.process.ProcessWorkerExecutorService.start(ProcessWorkerExecutorService.java:115)
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:717)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.lang.Thread.run(Thread.java:833)