GitHub user mayt opened a pull request: https://github.com/apache/kafka/pull/4056
KAFKA-6051 Close the ReplicaFetcherBlockingSend earlier on shutdown Rearranged the testAddPartitionDuringDeleteTopic() test to keep the likelyhood of the race condition. You can merge this pull request into a Git repository by running: $ git pull https://github.com/mayt/kafka KAFKA-6051 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/4056.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #4056 ---- commit 36c1fa6ca3bab4dc070910cba9223f4141982d82 Author: Maytee Chinavanichkit <maytee.chinavanich...@linecorp.com> Date: 2017-10-11T10:35:54Z KAFKA-6051 Close the ReplicaFetcherBlockingSend earlier on shutdown Rearranged the testAddPartitionDuringDeleteTopic() test to keep the likelyhood of the race condition. ---- ---