Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-7913

JMX Datacollection Config Generator Test Race Condition

    XMLWordPrintable

Details

    Description

      See http://bamboo.internal.opennms.com:8085/browse/OPENNMS-ONMS11-37/ for the failure.

      The "testRunMultipleTimes" is returning different values between each one:

      diff -Nurd /tmp/before.sorted /tmp/after.sorted 
      --- /tmp/before.sorted	2015-08-11 08:51:19.000000000 -0400
      +++ /tmp/after.sorted	2015-08-11 08:51:24.000000000 -0400
      @@ -18,6 +18,11 @@
       HeapMemoryUsageMax=0
       HeapMemoryUsageUsed=0
       Integer=0
      +LastGcInfoDuration=0
      +LastGcInfoEndTime=0
      +LastGcInfoGcThreadCount=0
      +LastGcInfoId=0
      +LastGcInfoStartTime=0
       LoadedClassCount=0
       Long=0
       MaxFileDescriptorCount=0

      I guess it's being run before all MBeans are registered? I'm not sure how to wait until we're sure everything is ready...

      Attachments

        Activity

          People

            ranger Benjamin Reed
            ranger Benjamin Reed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: