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

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

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • ALL
    • 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
    • 200
    • 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:
            samy.lanka@mongodb.com Samyukta Lanka
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: