Some tests failed when running test in idea on macos

Elasticsearch Version: 7.5.0
Idea Version: 2019.1
Gradle Version : 5.6.4
OS Info : Mac OS X 10.13.6 (x86_64)
Compiler JDK Version : 12 (Oracle Corporation 12 [OpenJDK 64-Bit Server VM 12+33])
Runtime JDK Version : 11 (18.9 11.0.2 [Java HotSpot(TM) 64-Bit Server VM 11.0.2+9-LTS])
Gradle JDK Version : 12 (Oracle Corporation 12 [OpenJDK 64-Bit Server VM 12+33])

When I run unit test in idea on my macbook, more than 100 tests failed , all of the failed tests print error as follows:

java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none
Expected :0
Actual :17

at __randomizedtesting.SeedInfo.seed([C2F91B7A968DFC24:6FE98AE424158446]:0)
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:891)
at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:864)
at org.elasticsearch.test.ESIntegTestCase.clearClusters(ESIntegTestCase.java:540)
at org.elasticsearch.test.ESIntegTestCase.buildAndPutCluster(ESIntegTestCase.java:514)
at org.elasticsearch.test.ESIntegTestCase.beforeInternal(ESIntegTestCase.java:376)
at org.elasticsearch.test.ESIntegTestCase.setupTestCluster(ESIntegTestCase.java:2093)
at jdk.internal.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:972)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:988)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:947)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:832)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:883)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:894)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368)
at java.base/java.lang.Thread.run(Thread.java:835)
Suppressed: java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none expected:<0> but was:<17>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
	at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:879)
	... 39 more
Suppressed: java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none expected:<0> but was:<17>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
	at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:879)
	... 39 more
Suppressed: java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none expected:<0> but was:<17>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
	at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:879)
	... 39 more
Suppressed: java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none expected:<0> but was:<17>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
	at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:879)
	... 39 more
Suppressed: java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none expected:<0> but was:<17>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
	at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:879)
	... 39 more
Suppressed: java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none expected:<0> but was:<17>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
	at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:879)
	... 39 more
Suppressed: java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none expected:<0> but was:<17>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
	at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:879)
	... 39 more
Suppressed: java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none expected:<0> but was:<17>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
	at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:879)
	... 39 more
Suppressed: java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none expected:<0> but was:<17>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
	at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:879)
	... 39 more
Suppressed: java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none expected:<0> but was:<17>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
	at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:879)
	... 39 more
Suppressed: java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none expected:<0> but was:<17>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
	at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:879)
	... 39 more
Suppressed: java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none expected:<0> but was:<17>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
	at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:879)
	... 39 more
Suppressed: java.lang.AssertionError: 17 channels still being tracked in HttpChannelTaskHandler while there should be none expected:<0> but was:<17>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.elasticsearch.test.ESIntegTestCase.lambda$clearClusters$2(ESIntegTestCase.java:540)
	at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:879)
	... 39 more

What's wrong here? I'm confused.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.