Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-20.1: kvserver: don't panic on wto after committed txn #51843

Merged

Conversation

andreimatei
Copy link
Contributor

Backport 1/1 commits from #51619.

/cc @cockroachdb/release


In #50317 we're getting reports of an assertion firing telling us that a
transaction has moved to the STAGING or COMMITTED state but there's also
a WriteTooOldError to return to the client. This seems bad, and I can't
figure out how it happens. EndTxn, which moves the txn to these states,
is supposed to notice the WriteTooOld field on the baHeader.Txn and not
do that transition. All the reports seem to be in the context of
UPSERTs.

This patch changes the assertion from a Fatal to just a sentry report,
and includes more info in the report. The hope is that this turns out to
be benign, related to the STAGING state.

Touches #50317

Release note: An unknown condition previously crash with the message
"committed txn with writeTooOld err" now no longer crashes a node;
instead an error message is printed to the logs asking for help in the
investigation.

In cockroachdb#50317 we're getting reports of an assertion firing telling us that a
transaction has moved to the STAGING or COMMITTED state but there's also
a WriteTooOldError to return to the client. This seems bad, and I can't
figure out how it happens. EndTxn, which moves the txn to these states,
is supposed to notice the WriteTooOld field on the baHeader.Txn and not
do that transition. All the reports seem to be in the context of
UPSERTs.

This patch changes the assertion from a Fatal to just a sentry report,
and includes more info in the report. The hope is that this turns out to
be benign, related to the STAGING state.

Touches cockroachdb#50317

Release note: An unknown condition previously crash with the message
"committed txn with writeTooOld err" now no longer crashes a node;
instead an error message is printed to the logs asking for help in the
investigation.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@andreimatei andreimatei merged commit 9496376 into cockroachdb:release-20.1 Jul 27, 2020
@andreimatei andreimatei deleted the backport20.1-51619 branch July 27, 2020 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants