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

Intermittent test failure: javax/management/monitor/CounterMonitorThresholdTest.java

    XMLWordPrintable

Details

    • b113
    • Not verified

    Backports

      Description

        TESTFAIL:javax/management/monitor/CounterMonitorThresholdTest.java

        javax/management/monitor/CounterMonitorThresholdTest.java failing intermittently:

        ----------System.out:(86/2302)----------

        Retrieve the platform MBean server

        Start monitoring...

        Counter = 0
        Derived Gauge = 0
        Threshold = 1

        Counter = 1
        Received notification: jmx.monitor.counter.threshold
        Source: DefaultDomain:type=javax.management.monitor.CounterMonitor,offset=1
        Type: jmx.monitor.counter.threshold
        TimeStamp: 1376361963913
        ObservedObject: DefaultDomain:type=CounterMonitorThresholdTest$Test,offset=1
        ObservedAttribute: Counter
        DerivedGauge: 1
        Trigger: 1
        Derived Gauge = 1
        Threshold = 2

        Counter = 2
        Received notification: jmx.monitor.counter.threshold
        Source: DefaultDomain:type=javax.management.monitor.CounterMonitor,offset=1
        Type: jmx.monitor.counter.threshold
        TimeStamp: 1376361964614
        ObservedObject: DefaultDomain:type=CounterMonitorThresholdTest$Test,offset=1
        ObservedAttribute: Counter
        DerivedGauge: 2
        Trigger: 2
        Derived Gauge = 2
        Threshold = 3

        Counter = 3
        Received notification: jmx.monitor.counter.threshold
        Source: DefaultDomain:type=javax.management.monitor.CounterMonitor,offset=1
        Type: jmx.monitor.counter.threshold
        TimeStamp: 1376361965156
        ObservedObject: DefaultDomain:type=CounterMonitorThresholdTest$Test,offset=1
        ObservedAttribute: Counter
        DerivedGauge: 3
        Trigger: 3
        Derived Gauge = 3
        Threshold = 4

        Counter = 4
        Received notification: jmx.monitor.counter.threshold
        Source: DefaultDomain:type=javax.management.monitor.CounterMonitor,offset=1
        Type: jmx.monitor.counter.threshold
        TimeStamp: 1376361965797
        ObservedObject: DefaultDomain:type=CounterMonitorThresholdTest$Test,offset=1
        ObservedAttribute: Counter
        DerivedGauge: 4
        Trigger: 4
        Derived Gauge = 4
        Threshold = 5

        Counter = 4
        Derived Gauge = 4
        Threshold = 5

        Counter = 5
        Received notification: jmx.monitor.counter.threshold
        Source: DefaultDomain:type=javax.management.monitor.CounterMonitor,offset=1
        Type: jmx.monitor.counter.threshold
        TimeStamp: 1376361967068
        ObservedObject: DefaultDomain:type=CounterMonitorThresholdTest$Test,offset=1
        ObservedAttribute: Counter
        DerivedGauge: 5
        Trigger: 5
        Derived Gauge = 5
        Threshold = 1

        Counter = 5
        Derived Gauge = 5
        Threshold = 1

        Counter = 0
        Derived Gauge = 0
        Threshold = 1

        Counter = 1
        Derived Gauge = 0
        Wrong derived gauge! Current value = 0 Expected value = 1

        Stop monitoring...
        ----------System.err:(14/860)----------
        java.lang.IllegalArgumentException: wrong derived gauge
        at CounterMonitorThresholdTest.runTest(CounterMonitorThresholdTest.java:155)
        at CounterMonitorThresholdTest.main(CounterMonitorThresholdTest.java:176)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:491)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:724)

        Attachments

          Issue Links

            Activity

              People

                sjiang Shanliang Jiang (Inactive)
                amlu Amy Lu (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: