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

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Sharding
    • ALL
    • 9

      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.

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: