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

storage: do not share an error across proposals #31631

Merged
merged 2 commits into from
Oct 19, 2018

Conversation

petermattis
Copy link
Collaborator

Replica.cancelPendingCommandsLocked was sharing an error across multiple
proposals. This is problematic because Store.Send mutates Error.Now.

Fixes #31535
Fixes #30483

Release note: None

Release note: None
Replica.cancelPendingCommandsLocked was sharing an error across multiple
proposals. This is problematic because Store.Send mutates Error.Now.

Fixes cockroachdb#31535
Fixes cockroachdb#30483

Release note: None
@petermattis petermattis requested review from a team and tbg October 19, 2018 15:07
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@petermattis
Copy link
Collaborator Author

petermattis commented Oct 19, 2018

I'm roachprod-stressrace-ing TestSystemZoneConfigs this change right now, but pretty confident this was the problem.

Copy link
Contributor

@benesch benesch left a comment

Choose a reason for hiding this comment

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

Nice find!

@petermattis
Copy link
Collaborator Author

25m without a reproduction while previously this was reproducing in 5-10m.

bors r=benesch

craig bot pushed a commit that referenced this pull request Oct 19, 2018
31631: storage: do not share an error across proposals r=benesch a=petermattis

Replica.cancelPendingCommandsLocked was sharing an error across multiple
proposals. This is problematic because Store.Send mutates Error.Now.

Fixes #31535
Fixes #30483

Release note: None

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

craig bot commented Oct 19, 2018

Build succeeded

@craig craig bot merged commit 0da68c1 into cockroachdb:master Oct 19, 2018
@petermattis petermattis deleted the pmattis/storage-race branch October 19, 2018 15:48
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.

3 participants