Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-6164

queue sendLock prevents concurrent journal updates

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.13.0
    • Fix Version/s: 5.14.0
    • Component/s: Broker, Message Store
    • Labels:
      None

      Description

      concurrent producers contend on the queue sendlock rather than on the journal, preventing batching or in the case of jdbc, concurrent writes to the db.

      The sendlock protects message order, however order is ultimately determined by the sequence id assigned by the persistence adapter.
      The ground work for aligning the cursors with the journal sequence ids was layed in https://issues.apache.org/jira/browse/AMQ-4485 and https://issues.apache.org/jira/browse/AMQ-5266

      With the ordering between transacted and non transacted producers overlapping the cursor already respects the journal ordering, the sendLock need no longer protect the journal update.

      With parallel journal updates we get the benefit of write batching (sharing an fsync) for multiple producers on a single destination.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gtully Gary Tully
                Reporter:
                gtully Gary Tully
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: