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

sql: assign locking strength and wait policy in ZigzagJoinerSpec_Side #81350

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nvanbenschoten
Copy link
Member

This was missed in a8b951b. I didn't notice until trying to backport.

What would be the right level to add testing for this plumbing?

This was missed in a8b951b. I didn't notice until trying to backport.

What would be the right level to add testing for this plumbing?
@nvanbenschoten nvanbenschoten requested a review from a team as a code owner May 17, 2022 04:46
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

Nice catch!

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @nvanbenschoten)


-- commits line 6 at r1:
Hm, I think the best option would be to include locking information into DistSQL diagrams (in execinfrapb/flow_diagram.go), and then write an execbuilder logic test using EXPLAIN (DISTSQL). This would probably mean adding the locking info for all four processors (TableReader, JoinReader, InvertedJoiner, ZigzagJoiner) for consistency, and it might clutter the diagrams, but probably it seems ok. Another option is having an end-to-end test (i.e. a regular logic test) where a query encounters contention because of this locking, but the diagram option seems cleaner.

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