Ensure ReshardingCoordinator has aborted in resharding_coordinator_recovers_abort_decision.js

XMLWordPrintableJSON

    • Fully Compatible
    • v6.0, v5.3, v5.0
    • Sharding NYC 2022-05-30
    • 35
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The reshardingPauseCoordinatorBeforeBlockingWrites failpoint managed by the ReshardingTest fixture is unset by the time the abortReshardCollection command is run by the parallel shell. The lack of synchronization in the test permits the ReshardingCoordinator to accidentally commit the resharding operation before the abortReshardCollection command is actually processed.

      [js_test:resharding_coordinator_recovers_abort_decision] c20526| 2022-05-11T11:15:45.248+00:00 I  RESHARD  5343001 [ReshardingCoordinatorService-3] "Transitioned resharding coordinator state","attr":{"newState":"committing","oldState":"blocking-writes","namespace":"reshardingDb.coll","collectionUUID":{"uuid":{"$uuid":"0ddedc31-d4f6-4185-ac4e-b260b9d6b305"}},"reshardingUUID":{"uuid":{"$uuid":"a4584faa-5ef3-4e69-88b8-cb2d78d0f6d7"}}}
      ...
      [js_test:resharding_coordinator_recovers_abort_decision] s20529| 2022-05-11T11:15:47.601+00:00 I  COMMAND  51803   [conn35] "Slow query","attr":{"type":"command","ns":"reshardingDb.coll","appName":"MongoDB Shell","command":{"abortReshardCollection":"reshardingDb.coll","lsid":{"id":{"$uuid":"d7a45c69-044f-4776-869b-033474386570"}},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1652267742,"i":1}},"signature":{"hash":{"$binary":{"base64":"AAAAAAAAAAAAAAAAAAAAAAAAAAA=","subType":"0"}},"keyId":0}},"$db":"admin"},"numYields":0,"ok":0,"errMsg":"Could not find resharding-related metadata that matches the given namespace","errName":"NoSuchReshardCollection","errCode":339,"reslen":299,"readConcern":{"level":"local","provenance":"implicitDefault"},"remote":"127.0.0.1:35324","protocol":"op_msg","durationMillis":22}
      

      https://evergreen.mongodb.com/lobster/build/3597a2a8b5bbd1db8ad100a6302632b1/test/627b9a76be07c41d6705496a#bookmarks=0%2C5672%2C6107%2C16975&f~=000~%5C%5BResharding.%2AService&f~=100~abortReshardCollection&l=1

              Assignee:
              Max Hirschhorn
              Reporter:
              Max Hirschhorn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: