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

RetryableInternalTransactionTest should explicitly wait for the ReplicaSetMonitor on all mongoses to have detected the new primary after failover or restart

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • Cluster Scalability 2025-03-17
    • 0

      The setUpTestMode helper in retryable_internal_transaction_test.js is already waiting for the primary. However, that appears to be not sufficient when the SDAM ReplicaSetMonitor is used. I think we could solve this by explicitly wait for the RSM on the mongoses to detect the new primary, for example, by calling awaitRSClientHosts like in this test.

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: