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

Handle resource-event duplicates in reports

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 6.3.1
    • Component/s: None
    • Template:
    • Team:
      PuppetDB
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      In fixing PDB-4312, we exposed a bug in the puppet agent that would send duplicate events for a failing exec call. That would cause reports to fail to insert into puppetdb. This fix adds additional columns to the primary key calculation for events, and ignores duplicate rows at insert.
      Show
      In fixing PDB-4312 , we exposed a bug in the puppet agent that would send duplicate events for a failing exec call. That would cause reports to fail to insert into puppetdb. This fix adds additional columns to the primary key calculation for events, and ignores duplicate rows at insert.
    • QA Risk Assessment:
      Needs Assessment

      Description

      We recently fixed a bug where an existing unique constraint on the resource_events table wasn't enforcing uniqueness when the "property" value was null. After fixing this we noticed that we're receiving duplicate resource events for failed exec calls in the same report. Will continue to investigate this issue and work on a solution to handle duplicate resource-events in the same report. 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              robert.roland Robert Roland
              Reporter:
              zachary.kent Zachary Kent
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support