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

concurrent_drops_and_creates.js may sporadically fail in multi-shard cluster test fixtures

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-04-15
    • 40

      Due to a known limitation of distributed transaction, the concurrent_drops_and_creates.js test may cause sporadic failures when executed against a sharded cluster containing more than one shard, under the following circumstances:

      1. DB1 gets created, with shard1 randomly picked as its primary shard
      2. The unsplittable DB1.coll1 collection gets created
      3. DB2 gets created, with shard2 randomly picked as its primary shard
      4. a new transaction is opened
      5. a new document is inserted into DB1.coll1; being the recipient of the first TXN write op, shard1 becomes the coordinator of the transaction
      6. the unsplittable collection DB2.coll2 gets created on non-TXN coordinating shard2

      The transaction commit fails with an unexpected OperationNotSupportedInTransaction due to step 6.

            Assignee:
            paolo.polato@mongodb.com Paolo Polato
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: