Create collection can be rollbacked and not retried on a Replica Set cluster

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0, 8.1.2, 8.0.13
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • v8.1, v8.0, v7.0, v6.0
    • Hide

      Run the following test on retryable_writes_jscore_stepdown suite.

      let collId = 1;
      function createCollAndCheckItExists() {
          const collName = "coll_" + collId++;
          jsTestLog("Going to create coll " + collName);
      
          assert.commandWorked(db.runCommand({create: collName}));
          assert.eq(1, db.getCollectionInfos({name: collName}).length);
      
          db.getCollection(collName).drop();
      }
      
      for (let i = 0; i < 100; i++) {
          createCollAndCheckItExists();
      }
      
      Show
      Run the following test on retryable_writes_jscore_stepdown suite. let collId = 1; function createCollAndCheckItExists() { const collName = "coll_" + collId++; jsTestLog("Going to create coll " + collName); assert.commandWorked(db.runCommand({create: collName})); assert.eq(1, db.getCollectionInfos({name: collName}).length); db.getCollection(collName).drop(); } for (let i = 0; i < 100; i++) { createCollAndCheckItExists(); }
    • Repl 2025-03-31, Repl 2025-04-14, Repl 2025-04-28, Repl 2025-05-12
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      On the retryable_writes_jscore_stepdown suite, we've seen how a collection is created, then rollbacked, and finally, the operation is not being retried. The cluster is not sending any error to the driver, so the driver believes the operation has been successfully created.

      This ticket's goal is to investigate whether this is a real bug or if it's just related to the retryable_writes_jscore_stepdown suite.

      You'll find attached to this ticket a BF with the logs of an occurrence.

              Assignee:
              Evelyn Wu
              Reporter:
              Silvia Surroca
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: