ServiceMix
  1. ServiceMix
  2. SM-1366

Strange threading problems running quartz component tests

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.2
    • Fix Version/s: None
    • Component/s: servicemix-quartz
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Regression:
      Unit Test Broken

      Description

      Hi

      running the quartz tests causes strange failures on my machine. Sometimes the tests fail...

      I think this is because of a Thread.sleep(..) statement within the test waiting for messages to arrive.
      On my machine it seems that this timeslot is (sometimes) not 'enough'.

      I added a CountDownLatch to the receiver component so that the test don't need to call Thread.sleep().

      Kristian

        Activity

        Hide
        Kristian Koehler added a comment -
        Show
        Kristian Koehler added a comment - applied my patch. see http://svn.apache.org/viewvc?view=rev&revision=678358
        Hide
        Kristian Köhler added a comment -

        ah sorry. will do it this week

        Kristian


        GASwerk - Geronimo Application Assemblies
        http://gaswerk.sourceforge.net

        Show
        Kristian Köhler added a comment - ah sorry. will do it this week Kristian – GASwerk - Geronimo Application Assemblies http://gaswerk.sourceforge.net
        Hide
        Guillaume Nodet added a comment -

        Wanna commit your patch now ?

        Show
        Guillaume Nodet added a comment - Wanna commit your patch now ?

          People

          • Assignee:
            Kristian Koehler
            Reporter:
            Kristian Koehler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development