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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        60d 19h 1m 1 Kristian Koehler 21/Jul/08 07:41
        Jeff Turner made changes -
        Project Import Sat Nov 27 00:46:19 EST 2010 [ 1290836779991 ]
        Kristian Koehler made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        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
        Kristian Koehler made changes -
        Field Original Value New Value
        Assignee Kristian Koehler [ kkoehler ]
        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 ?
        Kristian Koehler created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development