colexec: exhaust input in sorter benchmarks#45039
Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom Feb 13, 2020
asubiotto:bncl
Merged
colexec: exhaust input in sorter benchmarks#45039craig[bot] merged 1 commit intocockroachdb:masterfrom asubiotto:bncl
craig[bot] merged 1 commit intocockroachdb:masterfrom
asubiotto:bncl
Conversation
Member
yuzefovich
approved these changes
Feb 12, 2020
Member
yuzefovich
left a comment
There was a problem hiding this comment.
Reviewed 3 of 3 files at r1.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @asubiotto)
pkg/sql/colexec/external_sort_test.go, line 203 at r1 (raw file):
} sorter.Init() for {
[nit]: I think we tend to use form like for b := sorter.Next(ctx); b.Length() > 0; b = sorter.Next(ctx){} for this.
Some benchmarks were only calling `Next` the expected number of times and failing if a zero batch was encountered. However, operators perform cleanup when a zero batch is returned, so this cleanup step was being elided. It's also more in line with other benchmarks to exhaust the operator before finishing a benchmark. Release note: None (testing code cleanup)
asubiotto
commented
Feb 13, 2020
Contributor
Author
asubiotto
left a comment
There was a problem hiding this comment.
Reviewable status:
complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @yuzefovich)
pkg/sql/colexec/external_sort_test.go, line 203 at r1 (raw file):
Previously, yuzefovich wrote…
[nit]: I think we tend to use form like
for b := sorter.Next(ctx); b.Length() > 0; b = sorter.Next(ctx){}for this.
Done.
Contributor
Author
|
bors r=yuzefovich |
Contributor
Author
|
bors was canceled for some reason bors r=yuzefovich |
Contributor
Build failed |
Contributor
Author
|
roachtest flake bors r=yuzefovich |
craig bot
pushed a commit
that referenced
this pull request
Feb 13, 2020
45039: colexec: exhaust input in sorter benchmarks r=yuzefovich a=asubiotto Some benchmarks were only calling `Next` the expected number of times and failing if a zero batch was encountered. However, operators perform cleanup when a zero batch is returned, so this cleanup step was being elided. It's also more in line with other benchmarks to exhaust the operator before finishing a benchmark. Release note: None (testing code cleanup) 45080: storage/concurrency: test and bugfix for clearing the locks when the r=sumeerbhola a=sumeerbhola size limit of the lockTable is exceeded Release note: None Co-authored-by: Alfonso Subiotto Marques <alfonso@cockroachlabs.com> Co-authored-by: sumeerbhola <sumeer@cockroachlabs.com>
Contributor
Build succeeded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some benchmarks were only calling
Nextthe expected number of times andfailing if a zero batch was encountered. However, operators perform cleanup
when a zero batch is returned, so this cleanup step was being elided. It's
also more in line with other benchmarks to exhaust the operator before
finishing a benchmark.
Release note: None (testing code cleanup)