You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Pushkar <pu...@gmail.com> on 2016/12/14 15:07:21 UTC

Failing Tests during Build

Hi,

I tried to build NiFi on my linux machine using 'mvn -T 2.0C clean 
install'. However there seems to be a few tests failing which I don't 
seem to be able to fix. I have pasted the stacktrace below. Please let 
me know how I can fix this and get the build running.

Please note, I haven't made any changes to the code. I pulled the master 
branch and attempted to build.

Pushkar

- 
nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster-protocol/target/surefire-reports/org.apache.nifi.cluster.protocol.impl.SocketProtocolListenerTest-output.txt

[main] INFO org.apache.nifi.io.socket.SocketListener - Now listening for connections from nodes on port 0
[Process Cluster Protocol Request-1] WARN org.apache.nifi.cluster.protocol.impl.SocketProtocolListener - Failed processing protocol message from localhost.localdomain due to java.io.IOException: Failed reading protocol message due to malformed header
java.io.IOException: Failed reading protocol message due to malformed header
	at org.apache.nifi.cluster.protocol.jaxb.JaxbProtocolContext$2.unmarshal(JaxbProtocolContext.java:115)
	at org.apache.nifi.cluster.protocol.impl.SocketProtocolListener.dispatchRequest(SocketProtocolListener.java:142)
	at org.apache.nifi.io.socket.SocketListener$2$1.run(SocketListener.java:136)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
[main] INFO org.apache.nifi.io.socket.SocketListener - Socket Listener has been terminated successfully.
[Cluster Socket Listener] WARN org.apache.nifi.io.socket.SocketListener - Failed to communicate with Unknown Host due to java.net.SocketException: Socket closed
java.net.SocketException: Socket closed
	at java.net.PlainSocketImpl.socketAccept(Native Method)
	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
	at java.net.ServerSocket.implAccept(ServerSocket.java:545)
	at java.net.ServerSocket.accept(ServerSocket.java:513)
	at org.apache.nifi.io.socket.SocketListener$2.run(SocketListener.java:112)
	at java.lang.Thread.run(Thread.java:745)
[main] INFO org.apache.nifi.io.socket.SocketListener - Now listening for connections from nodes on port 0
[Process Cluster Protocol Request-1] INFO org.apache.nifi.cluster.protocol.impl.SocketProtocolListener - Finished processing request a3e83b60-05ee-47a0-a636-d528bea91cd3 (type=PING, length=129 bytes) from localhost.localdomain in 3935 millis
[main] INFO org.apache.nifi.io.socket.SocketListener - Socket Listener has been terminated successfully.
[main] INFO org.apache.nifi.io.socket.SocketListener - Now listening for connections from nodes on port 0
[Process Cluster Protocol Request-1] INFO org.apache.nifi.cluster.protocol.impl.SocketProtocolListener - Finished processing request 85ecda07-1d72-4109-84d5-f5f882194b76 (type=PING, length=129 bytes) from localhost.localdomain in 1 millis
[main] INFO org.apache.nifi.io.socket.SocketListener - Socket Listener has been terminated successfully.



- nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster-protocol/target/surefire-reports/org.apache.nifi.cluster.protocol.impl.SocketProtocolListenerTest.txt

-------------------------------------------------------------------------------
Test set: org.apache.nifi.cluster.protocol.impl.SocketProtocolListenerTest
-------------------------------------------------------------------------------
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.767 sec <<< FAILURE! - in org.apache.nifi.cluster.protocol.impl.SocketProtocolListenerTest
testDelayedRequest(org.apache.nifi.cluster.protocol.impl.SocketProtocolListenerTest)  Time elapsed: 4.358 sec  <<< FAILURE!
java.lang.AssertionError: expected:<1> but was:<0>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:645)
	at org.junit.Assert.assertEquals(Assert.java:631)
	at org.apache.nifi.cluster.protocol.impl.SocketProtocolListenerTest.testDelayedRequest(SocketProtocolListenerTest.java:128)



Re: Failing Tests during Build

Posted by Joe Witt <jo...@gmail.com>.
Hello

Those tests rely on DNS which appears to be in a funky state.
However, to get the build working otherwise you can run

mvn -T C2 clean install -DskipTests

Thanks
joe

On Wed, Dec 14, 2016 at 10:07 AM, Pushkar <pu...@gmail.com> wrote:
> Hi,
>
> I tried to build NiFi on my linux machine using 'mvn -T 2.0C clean install'.
> However there seems to be a few tests failing which I don't seem to be able
> to fix. I have pasted the stacktrace below. Please let me know how I can fix
> this and get the build running.
>
> Please note, I haven't made any changes to the code. I pulled the master
> branch and attempted to build.
>
> Pushkar
>
> -
> nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster-protocol/target/surefire-reports/org.apache.nifi.cluster.protocol.impl.SocketProtocolListenerTest-output.txt
>
> [main] INFO org.apache.nifi.io.socket.SocketListener - Now listening for
> connections from nodes on port 0
> [Process Cluster Protocol Request-1] WARN
> org.apache.nifi.cluster.protocol.impl.SocketProtocolListener - Failed
> processing protocol message from localhost.localdomain due to
> java.io.IOException: Failed reading protocol message due to malformed header
> java.io.IOException: Failed reading protocol message due to malformed header
>         at
> org.apache.nifi.cluster.protocol.jaxb.JaxbProtocolContext$2.unmarshal(JaxbProtocolContext.java:115)
>         at
> org.apache.nifi.cluster.protocol.impl.SocketProtocolListener.dispatchRequest(SocketProtocolListener.java:142)
>         at
> org.apache.nifi.io.socket.SocketListener$2$1.run(SocketListener.java:136)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> [main] INFO org.apache.nifi.io.socket.SocketListener - Socket Listener has
> been terminated successfully.
> [Cluster Socket Listener] WARN org.apache.nifi.io.socket.SocketListener -
> Failed to communicate with Unknown Host due to java.net.SocketException:
> Socket closed
> java.net.SocketException: Socket closed
>         at java.net.PlainSocketImpl.socketAccept(Native Method)
>         at
> java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
>         at java.net.ServerSocket.implAccept(ServerSocket.java:545)
>         at java.net.ServerSocket.accept(ServerSocket.java:513)
>         at
> org.apache.nifi.io.socket.SocketListener$2.run(SocketListener.java:112)
>         at java.lang.Thread.run(Thread.java:745)
> [main] INFO org.apache.nifi.io.socket.SocketListener - Now listening for
> connections from nodes on port 0
> [Process Cluster Protocol Request-1] INFO
> org.apache.nifi.cluster.protocol.impl.SocketProtocolListener - Finished
> processing request a3e83b60-05ee-47a0-a636-d528bea91cd3 (type=PING,
> length=129 bytes) from localhost.localdomain in 3935 millis
> [main] INFO org.apache.nifi.io.socket.SocketListener - Socket Listener has
> been terminated successfully.
> [main] INFO org.apache.nifi.io.socket.SocketListener - Now listening for
> connections from nodes on port 0
> [Process Cluster Protocol Request-1] INFO
> org.apache.nifi.cluster.protocol.impl.SocketProtocolListener - Finished
> processing request 85ecda07-1d72-4109-84d5-f5f882194b76 (type=PING,
> length=129 bytes) from localhost.localdomain in 1 millis
> [main] INFO org.apache.nifi.io.socket.SocketListener - Socket Listener has
> been terminated successfully.
>
>
>
> -
> nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster-protocol/target/surefire-reports/org.apache.nifi.cluster.protocol.impl.SocketProtocolListenerTest.txt
>
> -------------------------------------------------------------------------------
> Test set: org.apache.nifi.cluster.protocol.impl.SocketProtocolListenerTest
> -------------------------------------------------------------------------------
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.767 sec
> <<< FAILURE! - in
> org.apache.nifi.cluster.protocol.impl.SocketProtocolListenerTest
> testDelayedRequest(org.apache.nifi.cluster.protocol.impl.SocketProtocolListenerTest)
> Time elapsed: 4.358 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<1> but was:<0>
>         at org.junit.Assert.fail(Assert.java:88)
>         at org.junit.Assert.failNotEquals(Assert.java:834)
>         at org.junit.Assert.assertEquals(Assert.java:645)
>         at org.junit.Assert.assertEquals(Assert.java:631)
>         at
> org.apache.nifi.cluster.protocol.impl.SocketProtocolListenerTest.testDelayedRequest(SocketProtocolListenerTest.java:128)
>
>