Remove CoordinateCommitReturnsNoneIfCoordinatorWasRemoved unit test

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.1, 4.2.7
    • Affects Version/s: None
    • Component/s: Sharding
    • Fully Compatible
    • ALL
    • v4.2
    • Sharding 2019-09-09
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The unit test is no longer valid after SERVER-42772, because now the coordinator is removed from the catalog asynchronously.

      However, we could add some more test coverage:

      • That a coordinator is removed from the catalog on completion. From a quick search, I only foundĀ one unit test of this, and it is for when the coordinator is canceled. We could add coverage for the coordinator completing successfully or with an error.
      • That calling TransactionCoordinatorService::coordinateCommit for a lsid and txnNumber whose coordinator has completed either returns boost::none (because the coordinator has already been removed) or a ready future (the coordinator has yet to be removed).

            Assignee:
            Cheahuychou Mao
            Reporter:
            Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: