-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Change the implementation of the insert command, especially
db.coll.insertOne({a: Timestamp(0, 0)});
so that we get the current time without changing the cluster time in Mongod standalone mode.
When we run an insert with Timestamp(0, 0) we replace it with the current time. This happens in this code.
auto nextTime = VectorClockMutable::get(opCtx)->tickClusterTime(1);
As a result/ side effect, the cluster time component of the vector clock is updated to the current time. However, in standalone mongo the cluster time is expected to be Timestamp(0,1) (kInitialComponentTime), hence this creates incorrect state of the vector clock.
- is related to
-
SERVER-100712 Prevent usage of $$CLUSTER_TIME in commands in standalone mode
-
- In Code Review
-