Skip to content

execbuilder: de-flake a logic test#113159

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
yuzefovich:fixup-logic-test
Oct 26, 2023
Merged

execbuilder: de-flake a logic test#113159
craig[bot] merged 1 commit intocockroachdb:masterfrom
yuzefovich:fixup-logic-test

Conversation

@yuzefovich
Copy link
Copy Markdown
Member

We recently made a change to use the InOrder mode of the streamer in more cases. In particular, when we have at least 3 column families and we might end up with "family-specific" spans in the lookup and index joins, we'll now use the InOrder mode. That mode needs disk-backed results buffer which can show up as estimated max sql temp disk usage line in EXPLAIN ANALYZE output. This made one opt logic test a bit flaky due to randomization of column families, so this commit adjusts a single table with 3 columns to have a single column family to guarantee deterministic output.

Fixes: #113112.

Release note: None

@yuzefovich yuzefovich requested review from a team, DrewKimball and michae2 October 26, 2023 17:30
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

We recently made a change to use the InOrder mode of the streamer in
more cases. In particular, when we have at least 3 column families and
we might end up with "family-specific" spans in the lookup and index
joins, we'll now use the InOrder mode. That mode needs disk-backed
results buffer which can show up as `estimated max sql temp disk usage`
line in EXPLAIN ANALYZE output. This made one opt logic test a bit flaky
due to randomization of column families, so this commit adjusts a single
table with 3 columns to have a single column family to guarantee
deterministic output.

Release note: None
Copy link
Copy Markdown
Collaborator

@DrewKimball DrewKimball left a comment

Choose a reason for hiding this comment

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

:lgtm:

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


-- commits line 8 at r1:
Should we just hard-code estimated max sql temp disk usage as well? I guess this doesn't lose too much coverage, so it's probably alright.

Copy link
Copy Markdown
Member Author

@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.

TFTR!

bors r+

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @DrewKimball and @michae2)


-- commits line 8 at r1:

Previously, DrewKimball (Drew Kimball) wrote…

Should we just hard-code estimated max sql temp disk usage as well? I guess this doesn't lose too much coverage, so it's probably alright.

The question is whether this line shows up or not at all. With OutOfOrder mode it doesn't, with InOrder mode it might (when non-zero disk space is used). We already deflake the value to be 0B in case it does show, but that's insufficient. So I do think we just want to make sure that fixed mode is used.

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Oct 26, 2023

Build succeeded:

@craig craig bot merged commit 2137688 into cockroachdb:master Oct 26, 2023
@yuzefovich yuzefovich deleted the fixup-logic-test branch October 26, 2023 18:47
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.

pkg/sql/opt/exec/execbuilder/tests/local/local_test: TestExecBuild_lookup_join_limit failed

3 participants