Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-4902

Handle resource event purges in one pass when possible

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PDB 6.13.0
    • PuppetDB
    • None
    • HA
    • 2
    • Enhancement
    • PuppetDB now unifies report and resource event clean up during a full garbage collection, instead of handling each in a separate transaction. This ensures it only waits on the exclusive lock to drop relevant event partitions once.
    • Needs Assessment

    Description

      Previously during a full gc, we'd gc reports (and the associated events), then we'd gc events (again). Instead, handle all the events during the report gc by adjusting the report gc to consider both the report ttl and the events ttl. Then in cases where we know we just ran the report gc, don't run the event gc.

      This will ensure we only wait on the exclusive lock to drop any
      relevant event partitons once during a full gc.

       

      Attachments

        Activity

          People

            rob.browning Rob Browning
            rob.browning Rob Browning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support