[GitHub] ignite pull request: GridNioServer will try to connect to the next...

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] ignite pull request: GridNioServer will try to connect to the next...

andrey-kuznetsov
GitHub user ashutakGG opened a pull request:

    https://github.com/apache/ignite/pull/281

    GridNioServer will try to connect to the next ports if current port already busy.

    GridNioSelfTest tests fail on TC sometimes with the following exception:
   
    org.apache.ignite.IgniteCheckedException: Failed to initialize NIO selector.
        at org.apache.ignite.internal.util.nio.GridNioServer.createSelector(GridNioServer.java:648)
        at org.apache.ignite.internal.util.nio.GridNioServer.<init>(GridNioServer.java:280)
        at org.apache.ignite.internal.util.nio.GridNioServer.<init>(GridNioServer.java:86)
        at org.apache.ignite.internal.util.nio.GridNioServer$Builder.build(GridNioServer.java:2251)
        at org.apache.ignite.internal.util.nio.GridNioSelfTest.startServer(GridNioSelfTest.java:556)
        at org.apache.ignite.internal.util.nio.GridNioSelfTest.testThroughput(GridNioSelfTest.java:273)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at junit.framework.TestCase.runTest(TestCase.java:176)
        at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1674)
        at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:113)
        at org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1612)
    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:463)
        at sun.nio.ch.Net.bind(Net.java:455)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)
        at org.apache.ignite.internal.util.nio.GridNioServer.createSelector(GridNioServer.java:632)
        at org.apache.ignite.internal.util.nio.GridNioServer.<init>(GridNioServer.java:280)
        at org.apache.ignite.internal.util.nio.GridNioServer.<init>(GridNioServer.java:86)
        at org.apache.ignite.internal.util.nio.GridNioServer$Builder.build(GridNioServer.java:2251)
        at org.apache.ignite.internal.util.nio.GridNioSelfTest.startServer(GridNioSelfTest.java:556)
        at org.apache.ignite.internal.util.nio.GridNioSelfTest.testThroughput(GridNioSelfTest.java:273)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at junit.framework.TestCase.runTest(TestCase.java:176)
        at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1674)
        at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:113)
        at org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1612)
    ------- Stdout: -------
    [15:36:02,110][INFO ][main][root] >>> Starting test: testThroughput <<<
    [15:36:02,112][INFO ][main][root] >>> Stopping test: testThroughput in 2 ms <<<
    ------- Stderr: -------
    [15:36:02,111][ERROR][main][root] Test failed.
    class org.apache.ignite.IgniteCheckedException: Failed to initialize NIO selector.
        at org.apache.ignite.internal.util.nio.GridNioServer.createSelector(GridNioServer.java:648)
        at org.apache.ignite.internal.util.nio.GridNioServer.<init>(GridNioServer.java:280)
        at org.apache.ignite.internal.util.nio.GridNioServer.<init>(GridNioServer.java:86)
        at org.apache.ignite.internal.util.nio.GridNioServer$Builder.build(GridNioServer.java:2251)
        at org.apache.ignite.internal.util.nio.GridNioSelfTest.startServer(GridNioSelfTest.java:556)
        at org.apache.ignite.internal.util.nio.GridNioSelfTest.testThroughput(GridNioSelfTest.java:273)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at junit.framework.TestCase.runTest(TestCase.java:176)
        at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1674)
        at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:113)
        at org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1612)
    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:463)
        at sun.nio.ch.Net.bind(Net.java:455)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)
        at org.apache.ignite.internal.util.nio.GridNioServer.createSelector(GridNioServer.java:632)
        ... 13 more

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ashutakGG/incubator-ignite ignite-GridNioSelfTest

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ignite/pull/281.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #281
   
----
commit 7a3abf91b4970d6c5133c173219a2ef486feb2b5
Author: ashutak <[hidden email]>
Date:   2015-11-30T13:50:15Z

    GridNioServer will try to connect to next ports if current port already busy.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] ignite pull request: GridNioServer will try to connect to the next...

andrey-kuznetsov
Github user ashutakGG closed the pull request at:

    https://github.com/apache/ignite/pull/281


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---