ActiveMQ
  1. ActiveMQ
  2. AMQ-3801

Job scheduler can lose data on forced kill

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.6.0
    • Component/s: None
    • Labels:
      None

      Description

      The page file that keeps the index of jobs to be scheduled is using default write batch size of 1000. That means that index could get into incorrect state when broker is killed (and there's no recovery for this index). Turning off batching (as it's not needed for this low-volume index) will ensure that changes are always persisted immediately.

        Issue Links

          Activity

          Hide
          Dejan Bosanac added a comment -

          Fixed with svn revision 1309780

          Show
          Dejan Bosanac added a comment - Fixed with svn revision 1309780
          Hide
          devantor added a comment - - edited

          I compared release 5.4.2 performance vs 5.6.0. The fix solve the corruption problem at performance cost.

          1. Write batch disabled
            ant producer -Durl=tcp://127.0.0.1:6503 -Ddurable=true -DtimeToLive=86400000 -Dsubject=DELAY_TEST -Dtransacted=false -DparallelThreads=10 -DmessageSize=10000 -Dmax=1000
            BUILD SUCCESSFUL
            Total time: 36 minutes 17 seconds
          1. Batch enabled
            [java] All threads completed their work
            BUILD SUCCESSFUL
            Total time: 14 seconds
          Show
          devantor added a comment - - edited I compared release 5.4.2 performance vs 5.6.0. The fix solve the corruption problem at performance cost. Write batch disabled ant producer -Durl=tcp://127.0.0.1:6503 -Ddurable=true -DtimeToLive=86400000 -Dsubject=DELAY_TEST -Dtransacted=false -DparallelThreads=10 -DmessageSize=10000 -Dmax=1000 BUILD SUCCESSFUL Total time: 36 minutes 17 seconds Batch enabled [java] All threads completed their work BUILD SUCCESSFUL Total time: 14 seconds

            People

            • Assignee:
              Dejan Bosanac
              Reporter:
              Dejan Bosanac
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development