Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uprelease-2.1: ccl/storageccl/engineccl: properly handle intents which straddle sstables #31316
Conversation
petermattis
requested review from
danhhz and
benesch
Oct 12, 2018
petermattis
requested review from
cockroachdb/core-prs
as
code owners
Oct 12, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
petermattis
merged commit 051be3c
into
cockroachdb:release-2.1
Oct 12, 2018
petermattis
deleted the
petermattis:backport2.1-31290
branch
Oct 12, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
petermattis commentedOct 12, 2018
Backport 1/1 commits from #31290.
/cc @cockroachdb/release
An intent which straddles an sstable can lead an incremental iterator to
incorrectly ignore an sstable. In order to fix this, when an intent
straddles an sstable (i.e. the metadata key is the last key in the
sstable) we need to include the intent's timestamp in the timestamp
bounds. We don't need to do this for interior intents because we'll
already be including the intent's timestamp as it is contained in the
next key following the intent. Add
TestMVCCIncrementalIteratorIntentStraddlesSStableswhich demonstratesthe problem.
Fixes #28358
Release note (bug fix): Fix a rare scenario where a backup could
incorrectly include a key for a transaction which was aborted.