Commit 8ee050d
Merge #157802
157802: colexecjoin: add cancel check when consuming right input in cross join r=yuzefovich a=yuzefovich
We just saw a test failure where the query wasn't cancelled within 1 minute even though 0.1s statement timeout is set. In the goroutine dump we see the cross joiner building from the left input. We already check for cancellation every time Next is called on the cross joiner, at the beginning, but on the very first call there could be a long process to consume the right input. This commit adds the cancel checking before fetching the next batch from the right input (except for the first batch that might have already been fetched). I was unable to reproduce the timeout, but this shouldn't hurt.
Fixes: #156992.
Release note: None
Co-authored-by: Yahor Yuzefovich <[email protected]>1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| |||
0 commit comments