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

Some sun/tools/jstatd/TestJstatd* tests fail with "Not a percentage\: 68.31\: expected true, was false"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 19
    • core-svc
    • b11

      These tests failed with:
      Start jstat:
      [C:\\Users\\ti3nloi\\Downloads\\Nu\\jdk-19_windows-x64_bin-debug\\jdk-19\\fastdebug\\bin\\jstat.exe -J-XX:+UsePerfData -J-Duser.language=en -gcutil 520@WIN-05AK1RV1CLP:55149 250 5]
      [2022-07-05T02:14:49.330472500Z] Gathering output for process 3296
      [2022-07-05T02:14:51.943333300Z] Waiting for completion for process 3296
      [2022-07-05T02:14:51.944328500Z] Waiting for completion finished for process 3296
      Output and diagnostic info for process 3296 was saved into 'pid-3296-output.log'
        S0 S1 E O M CCS YGC YGCT FGC FGCT CGC CGCT GCT
        0.00 68.31 0.00 28.80 93.79 80.42 5 0.056 0 0.000 0 0.000 0.056
        0.00 68.31 0.00 28.80 93.79 80.42 5 0.056 0 0.000 0 0.000 0.056
        0.00 68.31 0.00 28.80 93.79 80.42 5 0.056 0 0.000 0 0.000 0.056
        0.00 68.31 0.00 28.80 93.79 80.42 5 0.056 0 0.000 0 0.000 0.056
        0.00 68.31 0.00 28.80 93.79 80.42 5 0.056 0 0.000 0 0.000 0.056

      [2022-07-05T02:14:51.946328400Z] Waiting for completion for process 3296
      [2022-07-05T02:14:51.946328400Z] Waiting for completion finished for process 3296
      ProcessThread.stopProcess() will kill process
      [2022-07-05T02:14:51.967771100Z] Gathering output for process 520
      [2022-07-05T02:14:51.985681900Z] Waiting for completion for process 520
      [2022-07-05T02:14:51.985681900Z] Waiting for completion finished for process 520
      --- ProcessLog ---
      cmd: C:\\Users\\ti3nloi\\Downloads\\Nu\\jdk-19_windows-x64_bin-debug\\jdk-19\\fastdebug\\bin\\jstatd.exe -J-XX:+UsePerfData -p 55149
      exitvalue: 1
      stderr:
      stdout:

      ----------System.err:(19/1147)----------
      java.lang.RuntimeException: Not a percentage: 68.31: expected true, was false
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
      at JstatGCUtilParser$GcStatistics.verify(JstatGCUtilParser.java:109)
      at JstatGCUtilParser.parse(JstatGCUtilParser.java:145)
      at JstatdTest.verifyJstatOutput(JstatdTest.java:207)
      at JstatdTest.runToolsAndVerify(JstatdTest.java:215)
      at JstatdTest.runTest(JstatdTest.java:347)
      at JstatdTest.doTest(JstatdTest.java:315)
      at TestJstatdPort.main(TestJstatdPort.java:39)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:1596)

            lmesnik Leonid Mesnik
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: