Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow stream to be interrupted when there is no traffic
When a partition is lost while there is no traffic, `PartitionStreamControl` is blocked waiting for data. We fix this by racing with the `interruptPromise`. (Thanks @josdirksen for the analysis!) Note: this situation can only occur with lost partitions. Timeouts (the other reason for interrupts) do not occur when there is no traffic. Currently, we have no way to test lost partitions. Therefore, there are no added tests. See #1250.
- Loading branch information