Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java tests fail #30

Closed
btorpey opened this issue Nov 21, 2014 · 7 comments
Closed

java tests fail #30

btorpey opened this issue Nov 21, 2014 · 7 comments

Comments

@btorpey
Copy link

btorpey commented Nov 21, 2014

Re: #28

Many thanks -- that does fix the C++ build.

Here's a snip from Java build that is failing:

uk.co.real_logic.aeron.driver.DriverConductorTest > shouldOnlyRemoveSubscriptionMediaEndpointUponRemovalOfAllSubscribers FAILED
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertNotNull(Assert.java:621)
at org.junit.Assert.assertNotNull(Assert.java:631)
at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldOnlyRemoveSubscriptionMediaEndpointUponRemovalOfAllSubscribers(DriverConductorTest.java:287)

uk.co.real_logic.aeron.driver.DriverConductorTest > shouldNotTimeoutSubscriptionOnKeepAlive FAILED
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertNotNull(Assert.java:621)
at org.junit.Assert.assertNotNull(Assert.java:631)
at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldNotTimeoutSubscriptionOnKeepAlive(DriverConductorTest.java:409)

uk.co.real_logic.aeron.driver.DriverConductorTest > shouldKeepSubscriptionMediaEndpointUponRemovalOfAllButOneSubscriber FAILED
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertNotNull(Assert.java:621)
at org.junit.Assert.assertNotNull(Assert.java:631)
at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldKeepSubscriptionMediaEndpointUponRemovalOfAllButOneSubscriber(DriverConductorTest.java:262)

uk.co.real_logic.aeron.driver.DriverConductorTest > shouldErrorOnRemoveChannelOnUnknownSessionId FAILED
Wanted but not invoked:
senderProxy.newPublication(

);
-> at uk.co.real_logic.aeron.driver.DriverConductorTest.verifySenderNotifiedOfNewPublication(DriverConductorTest.java:471)
Actually, there were zero interactions with this mock.
at uk.co.real_logic.aeron.driver.DriverConductorTest.verifySenderNotifiedOfNewPublication(DriverConductorTest.java:471)
at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldErrorOnRemoveChannelOnUnknownSessionId(DriverConductorTest.java:313)

uk.co.real_logic.aeron.driver.DriverConductorTest > shouldBeAbleToRemoveMultipleStreams FAILED
Wanted but not invoked:
senderProxy.closePublication();
-> at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldBeAbleToRemoveMultipleStreams(DriverConductorTest.java:237)
Actually, there were zero interactions with this mock.
at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldBeAbleToRemoveMultipleStreams(DriverConductorTest.java:237)

uk.co.real_logic.aeron.driver.DriverConductorTest > shouldErrorOnRemoveChannelOnUnknownStreamId FAILED
org.mockito.exceptions.verification.TooManyActualInvocations:
eventLogger.logException();
Wanted 1 time:
-> at uk.co.real_logic.aeron.driver.DriverConductorTest.verifyExceptionLogged(DriverConductorTest.java:443)
But was 2 times. Undesired invocation:
-> at uk.co.real_logic.aeron.driver.DriverConductor.onClientCommand(DriverConductor.java:324)
at uk.co.real_logic.aeron.driver.DriverConductorTest.verifyExceptionLogged(DriverConductorTest.java:443)
at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldErrorOnRemoveChannelOnUnknownStreamId(DriverConductorTest.java:331)

uk.co.real_logic.aeron.driver.DriverConductorTest > shouldTimeoutSubscription FAILED
Wanted but not invoked:
receiverProxy.addSubscription(, 10);
-> at uk.co.real_logic.aeron.driver.DriverConductorTest.verifyReceiverSubscribes(DriverConductorTest.java:433)
Actually, there were zero interactions with this mock.
at uk.co.real_logic.aeron.driver.DriverConductorTest.verifyReceiverSubscribes(DriverConductorTest.java:433)
at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldTimeoutSubscription(DriverConductorTest.java:393)

uk.co.real_logic.aeron.driver.DriverConductorTest > shouldNotTimeoutPublicationOnKeepAlive FAILED
Wanted but not invoked:
senderProxy.newPublication(

);
-> at uk.co.real_logic.aeron.driver.DriverConductorTest.verifySenderNotifiedOfNewPublication(DriverConductorTest.java:471)
Actually, there were zero interactions with this mock.
at uk.co.real_logic.aeron.driver.DriverConductorTest.verifySenderNotifiedOfNewPublication(DriverConductorTest.java:471)
at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldNotTimeoutPublicationOnKeepAlive(DriverConductorTest.java:371)

uk.co.real_logic.aeron.driver.DriverConductorTest > shouldBeAbleToAddMultipleStreams FAILED
Wanted but not invoked:
senderProxy.newPublication();
-> at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldBeAbleToAddMultipleStreams(DriverConductorTest.java:203)
Actually, there were zero interactions with this mock.
at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldBeAbleToAddMultipleStreams(DriverConductorTest.java:203)

uk.co.real_logic.aeron.driver.DriverConductorTest > shouldBeAbleToAddSingleSubscription FAILED
Wanted but not invoked:
clientProxy.operationSucceeded(1429);
-> at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldBeAbleToAddSingleSubscription(DriverConductorTest.java:177)

However, there were other interactions with this mock:
-> at uk.co.real_logic.aeron.driver.DriverConductor.onClientCommand(DriverConductor.java:333)
    at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldBeAbleToAddSingleSubscription(DriverConductorTest.java:177)

uk.co.real_logic.aeron.driver.DriverConductorTest > shouldTimeoutPublication FAILED
Wanted but not invoked:
senderProxy.newPublication(

);
-> at uk.co.real_logic.aeron.driver.DriverConductorTest.verifySenderNotifiedOfNewPublication(DriverConductorTest.java:471)
Actually, there were zero interactions with this mock.
at uk.co.real_logic.aeron.driver.DriverConductorTest.verifySenderNotifiedOfNewPublication(DriverConductorTest.java:471)
at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldTimeoutPublication(DriverConductorTest.java:356)

uk.co.real_logic.aeron.driver.DriverConductorTest > shouldBeAbleToRemoveSingleStream FAILED
Wanted but not invoked:
senderProxy.closePublication();
-> at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldBeAbleToRemoveSingleStream(DriverConductorTest.java:216)
Actually, there were zero interactions with this mock.
at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldBeAbleToRemoveSingleStream(DriverConductorTest.java:216)

uk.co.real_logic.aeron.driver.DriverConductorTest > shouldBeAbleToAddSinglePublication FAILED
Wanted but not invoked:
senderProxy.newPublication(

);
-> at uk.co.real_logic.aeron.driver.DriverConductorTest.verifySenderNotifiedOfNewPublication(DriverConductorTest.java:471)
Actually, there were zero interactions with this mock.
at uk.co.real_logic.aeron.driver.DriverConductorTest.verifySenderNotifiedOfNewPublication(DriverConductorTest.java:471)
at uk.co.real_logic.aeron.driver.DriverConductorTest.shouldBeAbleToAddSinglePublication(DriverConductorTest.java:163)

uk.co.real_logic.aeron.driver.UdpChannelTest > shouldHandleCanonicalFormForMulticastCorrectly SKIPPED

uk.co.real_logic.aeron.driver.UdpChannelTest > shouldParseValidMulticastAddress SKIPPED

uk.co.real_logic.aeron.driver.SelectorAndTransportTest > shouldSendMultipleDataFramesPerDatagramUnicastFromSourceToReceiver FAILED
java.lang.IllegalStateException: Failed to set SO_RCVBUF: attempted=131072, actual=124928
at uk.co.real_logic.aeron.driver.UdpChannelTransport.(UdpChannelTransport.java:102)
at uk.co.real_logic.aeron.driver.ReceiverUdpChannelTransport.(ReceiverUdpChannelTransport.java:58)
at uk.co.real_logic.aeron.driver.SelectorAndTransportTest.shouldSendMultipleDataFramesPerDatagramUnicastFromSourceToReceiver(SelectorAndTransportTest.java:185)

uk.co.real_logic.aeron.driver.SelectorAndTransportTest > shouldSendEmptyDataFrameUnicastFromSourceToReceiver FAILED
java.lang.RuntimeException: channel "udp://localhost:40123" : java.net.BindException: Address already in use
at uk.co.real_logic.aeron.driver.UdpChannelTransport.(UdpChannelTransport.java:112)
at uk.co.real_logic.aeron.driver.ReceiverUdpChannelTransport.(ReceiverUdpChannelTransport.java:58)
at uk.co.real_logic.aeron.driver.SelectorAndTransportTest.shouldSendEmptyDataFrameUnicastFromSourceToReceiver(SelectorAndTransportTest.java:135)

    Caused by:
    java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:436)
        at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:706)
        at uk.co.real_logic.aeron.driver.UdpChannelTransport.<init>(UdpChannelTransport.java:77)
        ... 2 more

uk.co.real_logic.aeron.driver.SelectorAndTransportTest > shouldHandleSmFrameFromReceiverToSender FAILED
java.lang.RuntimeException: channel "udp://localhost:40123" : java.net.BindException: Address already in use
at uk.co.real_logic.aeron.driver.UdpChannelTransport.(UdpChannelTransport.java:112)
at uk.co.real_logic.aeron.driver.ReceiverUdpChannelTransport.(ReceiverUdpChannelTransport.java:58)
at uk.co.real_logic.aeron.driver.SelectorAndTransportTest.shouldHandleSmFrameFromReceiverToSender(SelectorAndTransportTest.java:236)

    Caused by:
    java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:436)
        at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:706)
        at uk.co.real_logic.aeron.driver.UdpChannelTransport.<init>(UdpChannelTransport.java:77)
        ... 2 more

uk.co.real_logic.aeron.driver.SelectorAndTransportTest > shouldHandleBasicSetupAndTeardown FAILED
java.lang.RuntimeException: channel "udp://localhost:40123" : java.net.BindException: Address already in use
at uk.co.real_logic.aeron.driver.UdpChannelTransport.(UdpChannelTransport.java:112)
at uk.co.real_logic.aeron.driver.ReceiverUdpChannelTransport.(ReceiverUdpChannelTransport.java:58)
at uk.co.real_logic.aeron.driver.SelectorAndTransportTest.shouldHandleBasicSetupAndTeardown(SelectorAndTransportTest.java:103)

    Caused by:
    java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:436)
        at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:706)
        at uk.co.real_logic.aeron.driver.UdpChannelTransport.<init>(UdpChannelTransport.java:77)
        ... 2 more

uk.co.real_logic.aeron.driver.ReceiverTest > shouldNotOverwriteDataFrameWithHeartbeat FAILED
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:706)
at uk.co.real_logic.aeron.driver.ReceiverTest.setUp(ReceiverTest.java:145)

java.lang.NullPointerException
    at uk.co.real_logic.aeron.driver.ReceiverTest.tearDown(ReceiverTest.java:160)

uk.co.real_logic.aeron.driver.ReceiverTest > shouldOverwriteHeartbeatWithDataFrame FAILED
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:706)
at uk.co.real_logic.aeron.driver.ReceiverTest.setUp(ReceiverTest.java:145)

java.lang.NullPointerException
    at uk.co.real_logic.aeron.driver.ReceiverTest.tearDown(ReceiverTest.java:160)

uk.co.real_logic.aeron.driver.ReceiverTest > shouldHandleNonZeroTermOffsetCorrectly FAILED
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:706)
at uk.co.real_logic.aeron.driver.ReceiverTest.setUp(ReceiverTest.java:145)

java.lang.NullPointerException
    at uk.co.real_logic.aeron.driver.ReceiverTest.tearDown(ReceiverTest.java:160)

uk.co.real_logic.aeron.driver.ReceiverTest > shouldInsertDataIntoLogAfterInitialExchange FAILED
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:706)
at uk.co.real_logic.aeron.driver.ReceiverTest.setUp(ReceiverTest.java:145)

java.lang.NullPointerException
    at uk.co.real_logic.aeron.driver.ReceiverTest.tearDown(ReceiverTest.java:160)

uk.co.real_logic.aeron.driver.ReceiverTest > shouldCreateRcvTermAndSendSmOnSetup FAILED
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:706)
at uk.co.real_logic.aeron.driver.ReceiverTest.setUp(ReceiverTest.java:145)

java.lang.NullPointerException
    at uk.co.real_logic.aeron.driver.ReceiverTest.tearDown(ReceiverTest.java:160)

Results: FAILURE (77 tests, 53 successes, 22 failures, 2 skipped)

77 tests completed, 22 failed, 2 skipped
:aeron-driver:test FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':aeron-driver:test'.

    There were failing tests. See the report at: file:///shared/Aeron/aeron-driver/build/reports/tests/index.html

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 19.425 secs

@tmontgomery
Copy link
Contributor

@mjpt777 routinely uses Linux (he'll have to chime in on distro and version) & Windows.

@RichardWarburton routinely uses Linux (again, he'll have to chime in on distro and version).

I make sure Mac is OK.

I've not seen these errors. Nor heard of them lately.

I would think that some earlier version of the build has the ports. That would explain the bind errors. But the DriverConductorTest and similar should not really fail. Haven't seen these.

What distro is in use?

@btorpey
Copy link
Author

btorpey commented Nov 24, 2014

Distro is CentOS 6.5. Both selinux and iptables are disabled.

[/shared/Aeron] uname -a 
Linux centos65 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[/shared/Aeron] lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.5 (Final)
Release:    6.5
Codename:   Final
[/shared/Aeron] java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

Also, ports didn't seem to be in use at the time:

[/shared/Aeron] lsof -i :40123
[/shared/Aeron] 

@RichardWarburton
Copy link
Contributor

I'm using ubuntu 14.04. I've not seen these errors before.

@btorpey
Copy link
Author

btorpey commented Nov 25, 2014

Fair enough, and I've confirmed that I don't see those errors on mac.

Happy to help get it working on RH, that's the only platform I really care about.

P.S. Looks like both Agrona and Aeron download gradle -- perhaps because Agrona uses https: and Aeron uses http: url. Not a biggie, but I noticed it because I was on a cell network...

@tmontgomery
Copy link
Contributor

Hmmm. Not sure how the wrapper handles that... I'll check into it a bit...

@tmontgomery
Copy link
Contributor

Not sure what is going on with CentOS here...

@mjpt777
Copy link
Contributor

mjpt777 commented Apr 4, 2015

I cannot recreate this on Ubuntu or Fedora so will close for now unless someone care recreate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants