-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
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; } }
- https://github.com/mongodb/mongo/blob/cc8671bcf846a6aeda28a5cf81aea750c2fca4bd/src/mongo/db/repl/oplog_applier_impl.cpp#L632-L637
- https://github.com/mongodb/mongo/blob/cc8671bcf846a6aeda28a5cf81aea750c2fca4bd/src/mongo/db/repl/session_update_tracker.cpp#L139-L142
- https://github.com/mongodb/mongo/blob/cc8671bcf846a6aeda28a5cf81aea750c2fca4bd/src/mongo/db/repl/session_update_tracker.cpp#L171-L182
- is related to
-
SERVER-53854 checkReplicatedDataHashes() may return without throwing despite detecting a dbhash mismatch
- Closed