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

backport-2.0: storage: perform SpanSet assertions on read-only requests #24046

Merged
merged 1 commit into from
Apr 5, 2018

Conversation

nvanbenschoten
Copy link
Member

Backport 1/1 commits from #23997.

/cc @cockroachdb/release


Before this change, we only performed SpanSet assertions on read-write
requests. This was a pretty huge oversight and is what allowed #23944 to
slip in. This change fixes this by adding an engine.ReadWriter spanset
variant and using it for read-only requests while in race mode.

It is currently blocked on #23996 and the revival of #18579. This is actually
good news, as it means that no other spanset violations have crept in while
this assertion was missing.

First commit is from #23996.

Release note: None

Before this change, we only performed SpanSet assertions on read-write
requests. This was a pretty huge oversight and is what allowed cockroachdb#23944 to
slip in. This change fixes this by adding a `engine.ReadWriter` spanset
variant and using it for read-only requests while in race mode.

It is currently blocked on cockroachdb#23996 and the revival of cockroachdb#18579.

Release note: None
@nvanbenschoten nvanbenschoten requested a review from a team March 19, 2018 23:41
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@nvanbenschoten nvanbenschoten requested a review from bdarnell April 4, 2018 19:06
@bdarnell
Copy link
Contributor

bdarnell commented Apr 5, 2018

:lgtm:


Review status: 0 of 4 files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from Reviewable

@nvanbenschoten
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Apr 5, 2018

Build failed (retrying...)

craig bot added a commit that referenced this pull request Apr 5, 2018
24046: backport-2.0: storage: perform SpanSet assertions on read-only requests r=nvanbenschoten a=nvanbenschoten

Backport 1/1 commits from #23997.

/cc @cockroachdb/release

---

Before this change, we only performed SpanSet assertions on read-write
requests. This was a pretty huge oversight and is what allowed #23944 to
slip in. This change fixes this by adding an `engine.ReadWriter` spanset
variant and using it for read-only requests while in race mode.

It is currently blocked on #23996 and the revival of #18579. This is actually
good news, as it means that no other spanset violations have crept in while
this assertion was missing. 

First commit is from #23996.

Release note: None
@craig
Copy link
Contributor

craig bot commented Apr 5, 2018

Build succeeded

@craig craig bot merged commit 7d52e71 into cockroachdb:release-2.0 Apr 5, 2018
@nvanbenschoten nvanbenschoten deleted the backport2.0-23997 branch May 21, 2018 18:25
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