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

jdk/jfr/javaagent/TestLoadedAgent.java failed with "Mismatch in TestEvent count"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 17
    • hotspot
    • jfr
    • b07
    • x86_64
    • os_x_10.15

      The following test failed in the JDK17 CI:

      jdk/jfr/javaagent/TestLoadedAgent.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/329)----------
      command: main -Djdk.attach.allowAttachSelf=true jdk.jfr.javaagent.TestLoadedAgent
      reason: User specified action: run main/othervm -Djdk.attach.allowAttachSelf=true jdk.jfr.javaagent.TestLoadedAgent
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.instrument
      elapsed time (seconds): 54.067
      ----------configuration:(3/43)----------
      Boot Layer
        add modules: java.instrument

      ----------System.out:(0/0)----------
      ----------System.err:(16/1133)----------
      java.lang.RuntimeException: Mismatch in TestEvent count: expected 144512 to equal 150000
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
      at jdk.jfr.javaagent.EventEmitterAgent.validateRecording(EventEmitterAgent.java:95)
      at jdk.jfr.javaagent.TestLoadedAgent.main(TestLoadedAgent.java:52)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Mismatch in TestEvent count: expected 144512 to equal 150000

            egahlin Erik Gahlin
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: