Fix race in ReshardingCoordinatorServiceTest documentsFinal metric check

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ClusterScalability 6Jul-20Jul
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Coordinator unit tests can fail checkDonorDocumentsFinalMetrics because documentsFinal is persisted by a separate write within the kBlockingWrites phase (updateNumberOfDocsCopiedFinal), after the state transition write. The test may read the coordinator doc between the two writes and assert documentsFinal's content before it's written.

      checkDonorDocumentsFinalMetrics should re-read the coordinator document until documentsFinal is persisted before asserting.

            Assignee:
            Kruti Shah
            Reporter:
            Kruti Shah
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: