You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Timothy Chen (JIRA)" <ji...@apache.org> on 2013/08/29 23:02:52 UTC
[jira] [Created] (KAFKA-1036) Unable to rename replication offset
checkpoint in windows
Timothy Chen created KAFKA-1036:
-----------------------------------
Summary: Unable to rename replication offset checkpoint in windows
Key: KAFKA-1036
URL: https://issues.apache.org/jira/browse/KAFKA-1036
Project: Kafka
Issue Type: Bug
Environment: windows
Reporter: Timothy Chen
Priority: Critical
Although there was a fix for checkpoint file renaming in windows that tries to delete the existing checkpoint file if renamed failed, I'm still seeing renaming errors on windows even though the destination file doesn't exist.
A bit investigation shows that it wasn't able to rename the file since the kafka jvm still holds a fie lock on the tmp file and wasn't able to rename it.
Attaching a patch that calls a explict writer.close so it can release the lock and can able to rename it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira