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

Resharding recipient primaries may skip session application for grouped op='i' oplog entries

    • Fully Compatible
    • ALL
    • Sharding 2021-01-25, Sharding 2021-02-08
    • 1

      insertOplogAndUpdateConfigForRetryable() is only called for the first op='i' oplog entry in the group.

      if (op.isForReshardingSessionApplication()) {
          return insertOplogAndUpdateConfigForRetryable(opCtx, entryOrGroupedInserts.getOp());
      }
      

      https://github.com/mongodb/mongo/blob/cc8671bcf846a6aeda28a5cf81aea750c2fca4bd/src/mongo/db/s/resharding/resharding_oplog_applier.cpp#L409

      Note that ReshardingOplogApplicationRules::_applyInsert_inlock() throws when the repl::OplogEntryOrGroupedInserts is a grouped insert to cause repl::OplogApplierUtils::applyOplogBatchCommon() to retry with the op='i' oplog entries ungrouped.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: