Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-7587

HornetQ test suite on Windows is hanging

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • EAP_EWP 5.1.2 CR2
    • EAP_EWP 5.1.2 ER2, EAP_EWP 5.1.2 CR2
    • HornetQ
    • None
    • Not Required

      There seems to be an issue in HornetQ test suite on Windows Server 2008 and Windows Server 2008 R2. From logs in hudson ci job for Windows:
      https://hudson.qa.jboss.com/hudson/view/EAP-CI-Components/view/HornetQ-CI/job/ci-Windows-Server-2008-x86_64-SunJDK1.6-all-tests/

      it looks that UnitTestCase.forceGC() method never ends because of never ending while cycle:

      public static void forceGC()
      {
      logInstance.info("#test forceGC");
      WeakReference<Object> dumbReference = new WeakReference<Object>(new Object());
      // A loop that will wait GC, using the minimal time as possible
      while (dumbReference.get() != null)
      {
      System.gc();
      try

      { Thread.sleep(100); }

      catch (InterruptedException e)
      {
      }
      }
      logInstance.info("#test forceGC Done");
      }

      I think that JVM does not have to start garbage collector when "System.gc()" is called. I'm setting higher priority because this issue block us in certification of EAP/HQ for Windows.

            csuconic@redhat.com Clebert Suconic
            mnovak1@redhat.com Miroslav Novak
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: