Commit d5c8b90
committed
restore: fix restore hanging on server stop
`RunTaskAsyncEx` returns an error if it is ran while the stopper is
[stopping or
quiescing](https://github.com/cockroachdb/cockroach/blob/52aaf2e7ea3f20aced87d1dcc87a1873fb87ffbe/pkg/util/stop/stopper.go#L498-L500).
In the generative split and scatterer processor, in the event that the
task is run during stopping/quiesce, the `doneScatterCh` is never
closed. That means that any follow up `Next` calls on the processor will
hang on receiving from the channel.
Fixes: #153806
Release note: None1 parent 52aaf2e commit d5c8b90
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| |||
0 commit comments