[
https://issues.apache.org/jira/browse/NIFI-1165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15009656#comment-15009656
]
Joseph Percivall commented on NIFI-1165:
----------------------------------------
For the HDFS issue, what we plan on doing is ignoring the delinquent tests when
on windows. This is because ultimately the errors we are running into are not
errors caused by the processor we are trying to unit test but the Hadoop
binaries used to verified the changes. The end-game plan is to mock the file
system [1]. This will allows us to only test the processor and not the user
having the winutil.exe installed on their system.
I will be adding comments and the proper ignore statements to the PutHDFSTest
file explaining how to test if the user would like.
If no one has any objections, this resolves the last issue for this ticket. I
will be taking Mark's patch and integrating it with the RouteText and PutHDFS
changes into one patch for review shortly.
[1] https://issues.apache.org/jira/browse/NIFI-1184
> Master Build Fails on Windows
> -----------------------------
>
> Key: NIFI-1165
> URL: https://issues.apache.org/jira/browse/NIFI-1165
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Joseph Percivall
> Assignee: Joseph Percivall
> Priority: Blocker
> Fix For: 0.4.0
>
> Attachments: 0001-NIFI-1165-TailFileFixForWindows.patch
>
>
> I tested with two separate Windows 8 machines and get the same errors when
> building master. There are errors in PutHDFSTest, TestRouteText and
> TestTailFile
> PutHDFSTest fails on lines 186 and 198.
> The output for the TestRouteText and TestTailFile:
> TestRouteText.testJson:655 expected:<7> but was:<0>
> TestRouteText.testXml:691 expected:<1> but was:<0>
> TestTailFile.setup:61 null
> TestTailFile.setup:61 null
> TestTailFile.setup:61 null
> TestTailFile.setup:61 null
> TestTailFile.setup:61 null
> TestTailFile.setup:61 null
> TestTailFile.testRolloverAfterHavingReadAllData:277 expected:<2> but was:<0>
> TestTailFile.setup:61 null
> TestTailFile.setup:61 null
> TestTailFile.setup:61 null
> TestHDFS is failing due to: "java.io.IOException: Could not locate executable
> null\bin\winutils.exe in the Hadoop binaries."
> TestRouteText is actually failing due to attempting to take into account
> Windows by using "System.lineSeparator()" when traversing a file that is
> checked into git using "\n" line separators.
> TestTailFile I believe is failing due to the processor holding a lock on the
> file while the file is trying to be rolled over. In order to manually test
> it, I ran NiFi and started tailing a file. When I tried to rename it (like a
> server rolling over a file would) it told me it was in use by Java.
> I already have a fix for TestRouteText, Oleg and I are working on HDFS, and
> Mark is working on TailFile
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)