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

serviceability/jvmti/HeapMonitor/MyPackage/* tests fail with UT enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 21
    • hotspot
    • x86_64
    • generic

      After the integration of:

      JDK-8300809 Cleanup UT problem list

      the following three tests started to fail with UsageTracker enabled:

      serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorArrayAllSampledTest.java
      serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorMultiArrayTest.java
      serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorRecursiveTest.java

      In the first sighting after JDK-8300809,
      HeapMonitorArrayAllSampledTest.java failed on two different
      platforms with two different modes:

      linux-x64-debug showed:

      ----------System.err:(12/816)----------
      Unexpected high difference percentage: 48.5 due to the count being 1485.0 instead of 1000
      java.lang.RuntimeException: Statistics should show about 1000 samples.
      at MyPackage.HeapMonitorArrayAllSampledTest.main(HeapMonitorArrayAllSampledTest.java:64)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1623)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Statistics should show about 1000 samples.
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Statistics should show about 1000 samples.
      ----------rerun:(38/7640)*----------

      windows-x64 showed:

      ----------System.err:(12/752)----------
      java.lang.RuntimeException: Could not set the sampler
      at MyPackage.HeapMonitor.sampleEverything(HeapMonitor.java:194)
      at MyPackage.HeapMonitorArrayAllSampledTest.main(HeapMonitorArrayAllSampledTest.java:51)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1623)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Could not set the sampler
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Could not set the sampler
      ----------rerun:(41/6601)*----------


      In the first sighting after JDK-8300809,
      HeapMonitorMultiArrayTest.java failed on three different
      platforms with two different modes:

      windows-x64-debug and macox-x64-debug showed:

      ----------System.err:(12/742)----------
      java.lang.RuntimeException: Could not set the sampler
      at MyPackage.HeapMonitor.sampleEverything(HeapMonitor.java:194)
      at MyPackage.HeapMonitorMultiArrayTest.main(HeapMonitorMultiArrayTest.java:42)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1623)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Could not set the sampler
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Could not set the sampler
      ----------rerun:(41/6566)*----------

      linux-x64-debug showed:

      ----------System.err:(11/734)----------
      java.lang.RuntimeException: Number of samples (7302) not the expected (6000)
      at MyPackage.HeapMonitorMultiArrayTest.main(HeapMonitorMultiArrayTest.java:56)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1623)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Number of samples (7302) not the expected (6000)
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Number of samples (7302) not the expected (6000)
      ----------rerun:(38/7605)*----------

      In the first sighting after JDK-8300809, HeapMonitorRecursiveTest.java
      failed on just one platform:

      windows-x64-debug showed:

      ----------System.err:(12/740)----------
      java.lang.RuntimeException: Could not set the sampler
      at MyPackage.HeapMonitor.sampleEverything(HeapMonitor.java:194)
      at MyPackage.HeapMonitorRecursiveTest.main(HeapMonitorRecursiveTest.java:44)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1623)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Could not set the sampler
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Could not set the sampler
      ----------rerun:(41/6559)*----------

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: