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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development