GitHub user tedyu opened a pull request: https://github.com/apache/kafka/pull/4134
KAFKA-6075 Kafka cannot recover after an unclean shutdown on Windows As Vahid commented, Files.deleteIfExists(file.toPath) seems to destabilize Windows environment. This PR reverts to calling delete() directly. You can merge this pull request into a Git repository by running: $ git pull https://github.com/tedyu/kafka trunk Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/4134.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 #4134 ---- commit c734471f496b2bace8359f9c899cca73e636aa8d Author: tedyu <yuzhih...@gmail.com> Date: 2017-10-25T16:28:18Z KAFKA-6075 Kafka cannot recover after an unclean shutdown on Windows commit 7355e8c282b1cb7d70f2c290702b5b216f28d3cd Author: tedyu <yuzhih...@gmail.com> Date: 2017-10-25T16:36:50Z Use delete() ---- ---