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

Don't sync reports older than report-tll

    Details

    • Template:
    • Team:
      PuppetDB
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      PE release note only, this is an HA sync bug fix.

      PuppetDB will no longer sync reports that are older than the report-ttl but have not yet been garbage collected. This problem was manifest by unnecessary syncing of reports on startup due to PuppetDB performing an initial garbage collection on startup before beginning to sync from its remote, which likely had not performed garbage collection as recently.
      Show
      PE release note only, this is an HA sync bug fix. PuppetDB will no longer sync reports that are older than the report-ttl but have not yet been garbage collected. This problem was manifest by unnecessary syncing of reports on startup due to PuppetDB performing an initial garbage collection on startup before beginning to sync from its remote, which likely had not performed garbage collection as recently.
    • QA Risk Assessment:
      Needs Assessment

      Description

      The issue is that on start-up, an initial garbage collection would run, and then the initial sync would resync reports that had just been garbage collected locally, but had not yet been garbage collected on the remote. Also since the initial sync happens in maintenance mode, this also delayed the total start-up time for PuppetDB.

      When syncing reports, PuppetDB currently only usesĀ node-ttl as the threshold for when not to sync a catalog, report, fact, or node. Since we also have report-ttl we should respect that setting for reports (as it is often much shorter than node-ttl).

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  austin.blatt Austin Blatt
                  Reporter:
                  austin.blatt Austin Blatt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: