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

NetworkInterfaceStreamTest.java fails intermittently after JDK-8146758

    Details

    • Subcomponent:
    • Resolved In Build:
      b116
    • Verification:
      Not verified

      Description

      java/net/NetworkInterface/NetworkInterfaceStreamTest.java

      Failed at solaris-x64 and sparc (soon after JDK-8146758):

      #section:testng
      ----------messages:(3/151)----------
      command: testng NetworkInterfaceStreamTest
      reason: User specified action: run testng/othervm NetworkInterfaceStreamTest
      elapsed time (seconds): 0.885
      ----------System.out:(916/72624)----------
      [TestNG] Running:
        java/net/NetworkInterface/NetworkInterfaceStreamTest.java

      config java.util.stream.LoggingTestCase.before(): success
      test NetworkInterfaceStreamTest.testInetAddresses(): success
      config java.util.stream.LoggingTestCase.after(org.testng.internal.TestResult@2ad7602f): success
      config java.util.stream.LoggingTestCase.before(): success
      test NetworkInterfaceStreamTest.testNetworkInterfaces(): failure
      java.lang.AssertionError: 19 failure(s) for test data: RefTestData[Top-level network interfaces]
      1: java.lang.Error: STREAM_SPLITERATOR_FOREACH: java.lang.AssertionError: Iterators differ at element [2]: name:lo0 (lo0) != name:net0:1 (net0:1) expected [name:lo0 (lo0)] but found [name:net0:1 (net0:1)]

      STREAM_SPLITERATOR_FOREACH: [actual] [name:net4 (net4), name:net0 (net0), name:net0:1 (net0:1), name:lo0 (lo0)] != [expected] [name:net4 (net4), name:net0 (net0), name:lo0 (lo0)]
      java.lang.AssertionError: Iterators differ at element [2]: name:lo0 (lo0) != name:net0:1 (net0:1) expected [name:lo0 (lo0)] but found [name:net0:1 (net0:1)]

      STREAM_SPLITERATOR_FOREACH: [actual] [name:net4 (net4), name:net0 (net0), name:net0:1 (net0:1), name:lo0 (lo0)] != [expected] [name:net4 (net4), name:net0 (net0), name:lo0 (lo0)]
      at org.testng.Assert.fail(Assert.java:94)
      at org.testng.Assert.failNotEquals(Assert.java:494)
      at org.testng.Assert.assertEquals(Assert.java:123)
      at org.testng.Assert.assertEquals(Assert.java:592)
      at org.testng.Assert.assertEquals(Assert.java:643)
      at org.testng.Assert.assertEquals(Assert.java:618)
      at java.util.stream.LambdaTestHelpers.assertContents(java.base@9-ea/LambdaTestHelpers.java:280)
      at java.util.stream.LambdaTestHelpers.assertContentsEqual(java.base@9-ea/LambdaTestHelpers.java:391)
      at java.util.stream.OpTestCase$ExerciseDataStreamBuilder.lambda$new$0(java.base@9-ea/OpTestCase.java:273)
      at java.util.stream.OpTestCase$ExerciseDataStreamBuilder.lambda$exercise$2(java.base@9-ea/OpTestCase.java:406)
      at java.util.stream.LambdaTestHelpers.launderAssertion(java.base@9-ea/LambdaTestHelpers.java:416)
      at java.util.stream.OpTestCase$ExerciseDataStreamBuilder.exercise(java.base@9-ea/OpTestCase.java:414)
      at NetworkInterfaceStreamTest.testNetworkInterfaces(NetworkInterfaceStreamTest.java:71)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      at org.testng.TestRunner.privateRun(TestRunner.java:767)
      at org.testng.TestRunner.run(TestRunner.java:617)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      at org.testng.SuiteRunner.run(SuiteRunner.java:240)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      at org.testng.TestNG.run(TestNG.java:1057)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:220)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:184)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(java.base@9-ea/Thread.java:804)
      2: java.lang.Error: PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY: java.lang.AssertionError: Maps do not have the same size:4 != 3

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                xiaofeya Xiaofeng Yang
                Reporter:
                amlu Amy Lu
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: