[
https://issues.apache.org/jira/browse/FLUME-2722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14592668#comment-14592668
]
Roshan Naik commented on FLUME-2722:
------------------------------------
The ideal change is required in the embedded zookeeper.
The tests start/stop the zk.. but the file is not closed internally by it.. so
externally it is not feasible to delete the file.
This fix is just a workaround to prevent the test show up as a failure.
> Windows : TestKafkaSourceUtil Unit Tests fail on Windows
> --------------------------------------------------------
>
> Key: FLUME-2722
> URL: https://issues.apache.org/jira/browse/FLUME-2722
> Project: Flume
> Issue Type: Bug
> Components: Test
> Affects Versions: v1.6.0
> Reporter: Roshan Naik
> Assignee: Roshan Naik
> Labels: Windows
> Attachments: FLUME-2722.patch
>
>
> Reason: On Windows you cannot delete files in use.
> In this test.. The cleanup during teardown() is throwing an exception as it
> is not able delete one of the Zookeeper log files.
> Fix: Ideally the fix otherwise belongs in the zookeeper.close() which to
> close file handles properly. But till that happens using deleteQuietly() in
> stopZookeeper() is a workaround in Flume.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)