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-2.1: client: remove a bad assertion #29456

Merged
merged 1 commit into from
Sep 2, 2018

Conversation

andreimatei
Copy link
Contributor

Backport 1/1 commits from #29442.

/cc @cockroachdb/release


We were asserting that a txn closure doesn't declare success if the txn
is marked as ABORTED. Some sort of error is generally expected in that
case.
Unfortunately, the assertion is naive. The proto can be marked as
ABORTED async by the heartbeat loop, in which case the client only finds
out on the imminent commit attempt.

Fix #28743

Release note: bug fix: fix a rare crash with the message "no err but
aborted txn proto"

We were asserting that a txn closure doesn't declare success if the txn
is marked as ABORTED. Some sort of error is generally expected in that
case.
Unfortunately, the assertion is naive. The proto can be marked as
ABORTED async by the heartbeat loop, in which case the client only finds
out on the imminent commit attempt.

Fix cockroachdb#28743

Release note: bug fix: fix a rare crash with the message "no err but
aborted txn proto"
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@andreimatei
Copy link
Contributor Author

andreimatei commented Sep 2, 2018 via email

craig bot pushed a commit that referenced this pull request Sep 2, 2018
29456: release-2.1: client: remove a bad assertion r=andreimatei a=andreimatei

Backport 1/1 commits from #29442.

/cc @cockroachdb/release

---

We were asserting that a txn closure doesn't declare success if the txn
is marked as ABORTED. Some sort of error is generally expected in that
case.
Unfortunately, the assertion is naive. The proto can be marked as
ABORTED async by the heartbeat loop, in which case the client only finds
out on the imminent commit attempt.

Fix #28743

Release note: bug fix: fix a rare crash with the message "no err but
aborted txn proto"


Co-authored-by: Andrei Matei <andrei@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Sep 2, 2018

Build succeeded

@craig craig bot merged commit 22730b5 into cockroachdb:release-2.1 Sep 2, 2018
@andreimatei andreimatei deleted the backport2.1-29442 branch September 5, 2018 22:35
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