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

Provide a means to compact sparsely-populated KahaDB data files

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Message Store
    • Labels:
      None

      Description

      AMQ-5542 describes a bug in our handling of KahaDB files where most but not all of the messages have been removed. In the comments, we describe a scenario where many files could be kept simply because of a single message in an older KahaDB file, because ack messages in file N+1 apply to messages in file N and so N+1 must be kept as long as N is.

      The problem exists because KahaDB data files can't be compacted, which is why mKahaDB (multi-KahaDB) was developed. We should either use mKahaDB, or we should find some other mechanism to ensure that unneeded data files aren't kept around simply because a single old message is still alive.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tbain98 Tim Bain
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: