Skip to content

Commit

Permalink
executor: wait all fetchChildData exiting in HashAggExec.Close (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
sre-bot authored Oct 29, 2019
1 parent 6e0d18f commit e48693b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions executor/aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,20 @@ func (e *HashAggExec) Close() error {
for _, ch := range e.partialOutputChs {
close(ch)
}
for _, ch := range e.partialInputChs {
close(ch)
}
close(e.finalOutputCh)
}
close(e.finishCh)
for _, ch := range e.partialOutputChs {
for range ch {
}
}
for _, ch := range e.partialInputChs {
for range ch {
}
}
for range e.finalOutputCh {
}
e.executed = false
Expand Down

0 comments on commit e48693b

Please sign in to comment.