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

(maint) Fix flaky reports test

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 3.2.5, PDB 4.0.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      PuppetDB 2016-03-09

      Description

      Now that we do the post-migration vacuum in the background, it can
      race with test execution (especially in the 3.x series, where we are
      still running db migration once per test case). In this case, we are
      testing pagination. If we do the first paginated query, then vacuum
      executes, and then we do the second paginated query, the underlying
      table can be rewritten to have a different natural order.

      Fix this by supplying an order_by to the paginated query, ensuring
      its stability across storage change.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  gepetto-bot gepetto-bot
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: