Commit 1b0a291
committed
colexecjoin: add cancel check when consuming right input in cross join
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.
Release note: None1 parent 3b2811c commit 1b0a291
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