summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJosef Ahmad <josef.ahmad@mongodb.com>2022-08-31 07:01:16 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-07 07:45:10 +0000
commitfd61bf1c3764ee079d3dcde44a2eb24352c22ae5 (patch)
tree897c1905dbf3dc9db24011edd24f8e4e6f8efdec /docs
parent6863b640032e056b25fa8a1ea328b9f07cda4977 (diff)
downloadmongo-r6.1.0-rc1.tar.gz
SERVER-67538 Make multi-doc txns return WCE on index catalog changesr6.1.0-rc1
Background: SERVER-47866 stopped bumping the collection's minimum visibility timestamp on catalog changes related to an index; only the index's minimum visibility snapshot continues to be updated. One side effect of this change is that a multi-document transaction can read a at a snapshot where the index is not yet ready and commit at a timestamp when the index is ready, which not intended behaviour and can open the opportunity for a race to happen. This patch introduces a check for the indices' minimum visible timestamp. Attempting to write to an index entry while reading at an incompatible timestamp returns a write conflict exception. Locking rules guarantee that we see a consistent in-memory view of the indices' minimum visible snapshot. (cherry picked from commit a4bd3ce3607d2c3020d7efa3501240ae4b1a1b03)
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions