Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8210393

java/nio/channels/Selector/SelectWithConsumer.java failed assertion assertTrue(notifiedOps.get() == expectedOps);

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 12
    • core-libs

    Description

      The following test failed in JDK 11 CI mach5:
      java/nio/channels/Selector/SelectWithConsumer.java

      ----------System.out:(70/4081)----------
      [TestNG] Running:
        java/nio/channels/Selector/SelectWithConsumer.java

      test SelectWithConsumer.testActionClosingSelector(): success
      test SelectWithConsumer.testCancel(): success
      test SelectWithConsumer.testCloseDuringSelect(): success
      test SelectWithConsumer.testClosedSelector1(): success
      test SelectWithConsumer.testClosedSelector2(): success
      test SelectWithConsumer.testClosedSelector3(): success
      test SelectWithConsumer.testInterruptBeforeSelect(): success
      test SelectWithConsumer.testInterruptDuringSelect(): success
      test SelectWithConsumer.testLocks(): success
      test SelectWithConsumer.testNegativeTimeout(): success
      test SelectWithConsumer.testNull1(): success
      test SelectWithConsumer.testNull2(): success
      test SelectWithConsumer.testNull3(): success
      test SelectWithConsumer.testReadable(): success
      test SelectWithConsumer.testReadableAndWriteable(): failure
      java.lang.AssertionError: expected [true] but found [false]
      at org.testng.Assert.fail(Assert.java:94)
      at org.testng.Assert.failNotEquals(Assert.java:496)
      at org.testng.Assert.assertTrue(Assert.java:42)
      at org.testng.Assert.assertTrue(Assert.java:52)
      at SelectWithConsumer.testActionInvoked(SelectWithConsumer.java:78)
      at SelectWithConsumer.testReadableAndWriteable(SelectWithConsumer.java:166)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
      at java.base/java.lang.Thread.run(Thread.java:834)
      test SelectWithConsumer.testReentrantSelect1(): success
      test SelectWithConsumer.testReentrantSelect2(): success
      test SelectWithConsumer.testReentrantSelect3(): success
      test SelectWithConsumer.testRepeatedSelect1(): success
      test SelectWithConsumer.testRepeatedSelect2(): success
      test SelectWithConsumer.testTimeout(): success
      test SelectWithConsumer.testTwoChannels(): success
      test SelectWithConsumer.testWakeupBeforeSelect(): success
      test SelectWithConsumer.testWakeupDuringSelect(): success
      test SelectWithConsumer.testWritable(): success
      config SelectWithConsumer.shutdownThreadPool(): success

      ===============================================
      java/nio/channels/Selector/SelectWithConsumer.java
      Total tests run: 25, Failures: 1, Skips: 0
      ===============================================

      ----------System.err:(12/714)----------
      java.lang.Exception: failures: 1
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
      at java.base/java.lang.Thread.run(Thread.java:834)

      JavaTest Message: Test threw exception: java.lang.Exception
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 1


      test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 1

      Attachments

        Issue Links

          Activity

            People

              mli Hamlin Li
              ljiang Leo Jiang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: