Inserts to "system.indexes" bypass the check for retryability

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • v4.2
    • Sharding 2019-06-03, Sharding 2019-06-17
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Right now if an insert is to "system.indexes" it calls performCreateIndexes before the check for retryability for regular inserts. This means a retry of a successful insert to that collection will not be skipped and will call createIndexes again. We should either add retry checking to performCreateIndexes or uassert if an insert to "system.indexes" contains a txnNumber since the operation can't be retried.

      Failing retryable_writes_jscore_passthrough tests:

      • batch_write_command_insert.js

              Assignee:
              Alexander Taskov (Inactive)
              Reporter:
              Jack Mulrow
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: