Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-51066

Deduplicate retried idempotent commands in profiler test utility

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Sharding
    • ALL
    • 0

      The jstests/libs/profiler.js library is providing some functions to check existence and number of occurrences of oplog entries.

      Since retried idempotent operations are generating duplicate entries (as happened in BF-18868), this should be taken into account when calling profilerHasNumMatchingEntriesOrThrow and profilerHasSingleMatchingEntryOrThrow that are otherwise failing.

      A possible solution would be adding two equivalent functions profilerHasSingleIdempotentMatchingEntr[y|ies]OrThrow deduplicating commands presenting the same fields (maybe it is enough to just check the tuple <namespace, command type, clusterTime>).

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: