'Mark McAuliffe' via mongodb-dev
2018-06-19 22:27:17 UTC
Greetings,
It appears that MongoDB 3.6.5 introduced a new storage API
method: StorageEngine::getAllCommittedTimestamp(). The documentation for
this method says: "Returns the all committed timestamp. All transactions
with timestamps earlier than the all committed timestamp are committed."
This seems to be saying that the "all committed" timestamp is an exclusive
upper. That is, if getAllCommittedTimestamp were to return (100, 0) then
all transactions with strictly lower timestamps must be committed, but
(100, 0) itself presumably isn't. However, my experiments with WiredTiger
suggest that it actually reports an "all committed" timestamp that is
inclusive. For example, in a situation where the oldest active transaction
has timestamp (1003, 0), WiredTiger's getAllCommittedTimestamp returned
(1002, 4294967295) -- it went out of its way to return a timestamp that is
less than (1003, 0). Can someone please confirm that the "all committed"
timestamp is actually inclusive, not exclusive?
Thank you,
- Mark
It appears that MongoDB 3.6.5 introduced a new storage API
method: StorageEngine::getAllCommittedTimestamp(). The documentation for
this method says: "Returns the all committed timestamp. All transactions
with timestamps earlier than the all committed timestamp are committed."
This seems to be saying that the "all committed" timestamp is an exclusive
upper. That is, if getAllCommittedTimestamp were to return (100, 0) then
all transactions with strictly lower timestamps must be committed, but
(100, 0) itself presumably isn't. However, my experiments with WiredTiger
suggest that it actually reports an "all committed" timestamp that is
inclusive. For example, in a situation where the oldest active transaction
has timestamp (1003, 0), WiredTiger's getAllCommittedTimestamp returned
(1002, 4294967295) -- it went out of its way to return a timestamp that is
less than (1003, 0). Can someone please confirm that the "all committed"
timestamp is actually inclusive, not exclusive?
Thank you,
- Mark
--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/e4b38efd-4a13-414f-9c0b-1f588c5c656d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/e4b38efd-4a13-414f-9c0b-1f588c5c656d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.