Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SuperSorter: Don't set allDone if it's already set. (apache#17238)
This fixes a race where, if there is no output at all, setAllDoneIfPossible could be called twice (once when the output partitions future resolves, and once when the batcher finishes). If the calls happen in that order, it would try to create nil output channels both times, resulting in a "Channel already set" error.
- Loading branch information