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

Resharding recipient secondaries ignore no-op oplog entries meant to bump config.transactions records

    • Fully Compatible
    • ALL
    • Sharding 2021-01-25
    • 1

      SessionUpdateTracker::_updateSessionInfo() expects that {fromMigrate: true} has been set on the no-op oplog entry for it to be added as a derived operation to the oplog batch applied by secondaries.

      // Ignore any no-op oplog entries, except for the ones generated from session migration
      // of CRUD ops. These entries will have an o2 field that contains the original CRUD
      // oplog entry.
      >if (entry.getOpType() == OpTypeEnum::kNoop) {
          if (!entry.getFromMigrate() || !*entry.getFromMigrate()) {
              return;
          }
      
          if (!entry.getObject2()) {
              return;
          }
      }
      

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

              Created:
              Updated:
              Resolved: