I don't think the problem cannot be solved by point changes in the code. Please follow the links in my comment to the ticket for the likely root cause of all this:
https://issues.apache.org/jira/browse/KAFKA-1194?focusedCommentId=16580774&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16580774 The stack trace you show again is the typical symptom of Java not closing an unmapped file on unmap, but only in a finalizer at some random future time determined by the garbage collector, thereby preventing further access to the file on Windows, in particular, the file cannot be deleted. [ Full content available at: https://github.com/apache/kafka/pull/5603 ] This message was relayed via gitbox.apache.org for [email protected]
