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

Relax commit duration assumption for noShards commit type in router_transaction_metrics.js

    • ALL
    • v5.1, v5.0, v4.4, v4.2
    • Sharding 2021-09-20
    • 0

      router_transaction_metrics.js assumes for every commit type that if a commit was successful, the corresponding successfulDurationMicros metric will be greater than 0. The no shards commit type doesn't require any network messages so it's possible to complete in less than a microsecond, which fails this test.

      To avoid failures, the test should relax this assertion for just the no shards commit type. The other commit types all require at least one network message, so it should be safe to keep this assumption for them. 

       

            Assignee:
            jonathan.lee@mongodb.com Jonathan Lee
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: