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

kv: unwrap MixedSuccessError even when retry attempts exhausted #40356

Merged

Conversation

nvanbenschoten
Copy link
Member

Fixes #40328.
Closes #40332.

This commit fixes a bug where MixedSuccessErrors would not be unwrapped by the txnSpanRefresher when a request had exhausted its refresh attempt limit.

The theory is that the race test plus the background stats computation in TestParallel/create_stats was causing a lot of transaction retries, which exhausted maxTxnRefreshAttempts.

The PR also improves the documentation on the txnSpanRefresher. It adds a comment describing the interceptors role in the transaction model, which is similar to the comments we have on the other interceptors.

Add a comment describing the interceptors role in the transaction model.
This is similar to the comments we have on the other interceptors.

Release note: None
Fixes cockroachdb#40328.
Closes cockroachdb#40332.

This commit fixes a bug where MixedSuccessErrors would not be unwrapped
by the txnSpanRefresher when a request had exhausted its refresh attempt
limit.

The theory is that the race test plus the background stats computation
in `TestParallel/create_stats` was causing a lot of transaction retries,
which exhausted `maxTxnRefreshAttempts`.

Release note: None
@nvanbenschoten nvanbenschoten requested a review from tbg August 29, 2019 23:50
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1, 1 of 1 files at r2.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@nvanbenschoten
Copy link
Member Author

bors r+

craig bot pushed a commit that referenced this pull request Aug 30, 2019
40356: kv: unwrap MixedSuccessError even when retry attempts exhausted r=nvanbenschoten a=nvanbenschoten

Fixes #40328.
Closes #40332.

This commit fixes a bug where MixedSuccessErrors would not be unwrapped by the txnSpanRefresher when a request had exhausted its refresh attempt limit.

The theory is that the race test plus the background stats computation in `TestParallel/create_stats` was causing a lot of transaction retries, which exhausted `maxTxnRefreshAttempts`.

The PR also improves the documentation on the `txnSpanRefresher`. It adds a comment describing the interceptors role in the transaction model, which is similar to the comments we have on the other interceptors.

Co-authored-by: Nathan VanBenschoten <[email protected]>
@craig
Copy link
Contributor

craig bot commented Aug 30, 2019

Build succeeded

@craig craig bot merged commit b356962 into cockroachdb:master Aug 30, 2019
@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/refreshTimestamp branch September 5, 2019 17:40
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.

teamcity: failed test: TestParallel invalid retryable err
3 participants