Re: Master Branch Tests Failing on Windows

2015-11-12 Thread Tony Kurc
Joe, I built on windows 7 without issue. I have a win 10 box, will try
tonight to recreate there
On Nov 11, 2015 11:08 PM, "Joe Percivall" 
wrote:

> I like the thought but I just tried replacing all the "/" with
> File.separator and it still failed the same way. I also tried it also on
> testPutFileWithException but I still got the same NPE as I was getting
> before on this line:
>
> fs.setPermission(p,permission);
>
>
>
> - - - - - -
> Joseph Percivall
> linkedin.com/in/Percivall
> e: joeperciv...@yahoo.com
>
>
>
>
>
> On Wednesday, November 11, 2015 10:59 PM, Oleg Zhurakousky <
> ozhurakou...@hortonworks.com> wrote:
> Joe
>
> I am gonna go out on the limb here, but do you think it may have something
> to do with forward slashes “target/test-classes”?
> Perhaps we may need to start using File.separator?
>
> Oleg
>
> On Nov 11, 2015, at 8:41 PM, Joe Percivall  > wrote:
>
> Hey Dev,
>
> Is anyone building the project using Windows (specifically 8)?
>
> I wanted to verify a patch I'm doing for ExecuteStreamCommand works on
> Windows. So I did a fresh clone of the git repo and ran "mvn clean install"
> but I get seemingly random errors. One such error is on PutHDFSTest line
> 178 (added an extra line to break up the logic):
>
> List failedFlowFiles =
> runner.getFlowFilesForRelationship(new
> Relationship.Builder().name("failure").build());
> boolean isEmpty = failedFlowFiles.isEmpty();
> assertTrue(isEmpty);
>
> I get an AssertionError:
>
> testPutFile(org.apache.nifi.processors.hadoop.PutHDFSTest)  Time elapsed:
> 5.223 sec  <<< FAILURE!
> java.lang.AssertionError: null
> at org.junit.Assert.fail(Assert.java:86)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.junit.Assert.assertTrue(Assert.java:52)
> at
> org.apache.nifi.processors.hadoop.PutHDFSTest.testPutFile(PutHDFSTest.java:179)
>
> Except that I was stepping through and saw that isEmpty was not null going
> into the assertion.
>
> I have the feeling something is funky with my local system but can anyone
> verify that a clean clone of the repo is working on Windows?
>
> Thanks,
> Joe
>
> - - - - - -
> Joseph Percivall
> linkedin.com/in/Percivall
>
> e: joeperciv...@yahoo.com
>


Re: Master Branch Tests Failing on Windows

2015-11-11 Thread Oleg Zhurakousky
Joe,

I’ll play the guilty one.

This tests was @Ignored until https://issues.apache.org/jira/browse/NIFI-1124 
(today i think)
I can probably get a Windows VM going (so I can look) but would hope I don’t 
have to.
Let me know if you dig something up otherwise I’ll look.

Oleg

On Nov 11, 2015, at 8:41 PM, Joe Percivall 
> wrote:

Hey Dev,

Is anyone building the project using Windows (specifically 8)?

I wanted to verify a patch I'm doing for ExecuteStreamCommand works on Windows. 
So I did a fresh clone of the git repo and ran "mvn clean install" but I get 
seemingly random errors. One such error is on PutHDFSTest line 178 (added an 
extra line to break up the logic):

List failedFlowFiles = runner.getFlowFilesForRelationship(new 
Relationship.Builder().name("failure").build());
boolean isEmpty = failedFlowFiles.isEmpty();
assertTrue(isEmpty);

I get an AssertionError:

testPutFile(org.apache.nifi.processors.hadoop.PutHDFSTest)  Time elapsed: 5.223 
sec  <<< FAILURE!
java.lang.AssertionError: null
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertTrue(Assert.java:52)
at 
org.apache.nifi.processors.hadoop.PutHDFSTest.testPutFile(PutHDFSTest.java:179)

Except that I was stepping through and saw that isEmpty was not null going into 
the assertion.

I have the feeling something is funky with my local system but can anyone 
verify that a clean clone of the repo is working on Windows?

Thanks,
Joe

- - - - - -
Joseph Percivall
linkedin.com/in/Percivall
e: joeperciv...@yahoo.com




Master Branch Tests Failing on Windows

2015-11-11 Thread Joe Percivall
Hey Dev,

Is anyone building the project using Windows (specifically 8)?

I wanted to verify a patch I'm doing for ExecuteStreamCommand works on Windows. 
So I did a fresh clone of the git repo and ran "mvn clean install" but I get 
seemingly random errors. One such error is on PutHDFSTest line 178 (added an 
extra line to break up the logic):

List failedFlowFiles = runner.getFlowFilesForRelationship(new 
Relationship.Builder().name("failure").build()); 
boolean isEmpty = failedFlowFiles.isEmpty(); 
assertTrue(isEmpty);

I get an AssertionError:

testPutFile(org.apache.nifi.processors.hadoop.PutHDFSTest)  Time elapsed: 5.223 
sec  <<< FAILURE! 
java.lang.AssertionError: null 
at org.junit.Assert.fail(Assert.java:86) 
at org.junit.Assert.assertTrue(Assert.java:41) 
at org.junit.Assert.assertTrue(Assert.java:52) 
at 
org.apache.nifi.processors.hadoop.PutHDFSTest.testPutFile(PutHDFSTest.java:179)

Except that I was stepping through and saw that isEmpty was not null going into 
the assertion. 

I have the feeling something is funky with my local system but can anyone 
verify that a clean clone of the repo is working on Windows? 
 
Thanks,
Joe

- - - - - - 
Joseph Percivall
linkedin.com/in/Percivall
e: joeperciv...@yahoo.com


Re: Master Branch Tests Failing on Windows

2015-11-11 Thread Oleg Zhurakousky
Joe

I am gonna go out on the limb here, but do you think it may have something to 
do with forward slashes “target/test-classes”?
Perhaps we may need to start using File.separator?

Oleg

On Nov 11, 2015, at 8:41 PM, Joe Percivall 
> wrote:

Hey Dev,

Is anyone building the project using Windows (specifically 8)?

I wanted to verify a patch I'm doing for ExecuteStreamCommand works on Windows. 
So I did a fresh clone of the git repo and ran "mvn clean install" but I get 
seemingly random errors. One such error is on PutHDFSTest line 178 (added an 
extra line to break up the logic):

List failedFlowFiles = runner.getFlowFilesForRelationship(new 
Relationship.Builder().name("failure").build());
boolean isEmpty = failedFlowFiles.isEmpty();
assertTrue(isEmpty);

I get an AssertionError:

testPutFile(org.apache.nifi.processors.hadoop.PutHDFSTest)  Time elapsed: 5.223 
sec  <<< FAILURE!
java.lang.AssertionError: null
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertTrue(Assert.java:52)
at 
org.apache.nifi.processors.hadoop.PutHDFSTest.testPutFile(PutHDFSTest.java:179)

Except that I was stepping through and saw that isEmpty was not null going into 
the assertion.

I have the feeling something is funky with my local system but can anyone 
verify that a clean clone of the repo is working on Windows?

Thanks,
Joe

- - - - - -
Joseph Percivall
linkedin.com/in/Percivall
e: joeperciv...@yahoo.com