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

verifyMidpointTransactionMetrics should use assert.gte instead of assert.eq

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • ALL
    • Cluster Scalability 2024-07-22

      Currently verifyMidpointTransactionMetrics uses assert.eq to check that "totalContactedParticipants" is incremented by exactly the expected number of participants in the transaction started by the test. However background threads can also run concurrent transactions that increment the "totalContactedParticipants" count. As a result, the test should be using assert.gte instead to see if "totalContactedParticipants" is incremented by at least the expected number of participants rather than exactly the expected number of participants. 

            Assignee:
            wenqin.ye@mongodb.com Wenqin Ye
            Reporter:
            wenqin.ye@mongodb.com Wenqin Ye
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: