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

Add a StaleConfig error code to transaction_reject_writes_for_moved_chunks test case

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Operating System:
      ALL
    • Linked BF Score:
      9

      Description

      The BF-14549 failure happens when recipient shard fails to update its routing table once the moveChunk completes.
      As such it issues a StaleConfig error on the attempt to insert instead of the expected MigrationConflict (https://github.com/mongodb/mongo/blob/v4.2/jstests/sharding/transactions_reject_writes_for_moved_chunks.js#L129)
      The proposed fix is to either add the StaleConfig to the list of allowed errors as its expected behavior or make sure that the recipient routing table is updated before the insert.
      In both cases it's a test case change.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: