Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-854

Race discovered in SingleThreadedEventHandlingStrategyTest

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.6.2
    • Component/s: Engine
    • Labels:
      None

      Description

      I have run into a problem with the unit tests on my quad core haswell i7. It looks like a race condition.

      Failed tests:
      SingleThreadedEventHandlingStrategyTest.testDoubleStart:55->checkThreads:94 Exactly one 'QFJ Message Processor' thread expected expected:<1> but was:<2>

      Tests run: 1294, Failures: 1, Errors: 0, Skipped: 0

      I can fix the problem by adding this sleep on line 54 of SingleThreadedEventHandlingStrategyTest. However this is not the right solution but it works.

      ehs.blockInThread();
      Thread.sleep(200); //need delay
      ehs.blockInThread();
      checkThreads(bean);

        Attachments

          Activity

            People

            • Assignee:
              alphashock Marcin L
              Reporter:
              nathantippy Nathan Tippy
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: