-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
49333: colexec: fix premature calls to IdempotentClose in hash router outputs r=yuzefovich a=yuzefovich Previously, we were passing in `toClose` slice of idempotent closers to every outbox that is the output of a hash router. However, it is possible that one stream will be closed before others, and this would prompt the corresponding outbox to close all of the closers prematurely. Other streams might still be active and ready to consume more data, but that single outbox would close everything. This is now fixed by making hash router responsible for closing the whole `toClose` slice, and it will do so right before exiting `Run` method. Fixes: #49315. Release note (bug fix): Previously, CockroachDB could return an internal error or incorrect results on queries when they were run via the vectorized execution engine and had a hash router in the DistSQL plan. This could only occur with `vectorize=on`. Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
4 changed files
with
30 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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