Failed

org.glassfish.grizzly.thrift.client.GrizzlyThriftClientFailoverTest.testFailoverWithMultiClientAndServerClose

Failing for the past 19 builds (Since Unstable#538 )
Took 15 ms.

Error Message

Address already in use

Stacktrace

java.net.BindException: Address already in use
	at org.glassfish.grizzly.thrift.client.GrizzlyThriftClientFailoverTest.createThriftServer(GrizzlyThriftClientFailoverTest.java:312)
	at org.glassfish.grizzly.thrift.client.GrizzlyThriftClientFailoverTest.testFailoverWithMultiClientAndServerClose(GrizzlyThriftClientFailoverTest.java:249)

Standard Error

Sep 26, 2019 12:31:27 AM org.glassfish.grizzly.thrift.client.GrizzlyThriftClient addServer
INFO: added the server successfully. address=localhost/127.0.0.1:7791
Sep 26, 2019 12:31:27 AM org.glassfish.grizzly.thrift.client.GrizzlyThriftClient addServer
SEVERE: failed to create min connections in the pool. address=localhost/127.0.0.1:7792
org.glassfish.grizzly.thrift.client.pool.NoValidObjectException: java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused
	at org.glassfish.grizzly.thrift.client.pool.BaseObjectPool.createIfUnderSpecificSize(BaseObjectPool.java:297)
	at org.glassfish.grizzly.thrift.client.pool.BaseObjectPool.createAllMinObjects(BaseObjectPool.java:103)
	at org.glassfish.grizzly.thrift.client.GrizzlyThriftClient.addServer(GrizzlyThriftClient.java:393)
	at org.glassfish.grizzly.thrift.client.GrizzlyThriftClient.addServer(GrizzlyThriftClient.java:383)
	at org.glassfish.grizzly.thrift.client.GrizzlyThriftClientFailoverTest.testFailoverWithMultiClientAndServerClose(GrizzlyThriftClientFailoverTest.java:245)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
Caused by: java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused
	at org.glassfish.grizzly.impl.SafeFutureImpl$Sync.innerGet(SafeFutureImpl.java:325)
	at org.glassfish.grizzly.impl.SafeFutureImpl.get(SafeFutureImpl.java:231)
	at org.glassfish.grizzly.thrift.client.GrizzlyThriftClient$1.createObject(GrizzlyThriftClient.java:229)
	at org.glassfish.grizzly.thrift.client.GrizzlyThriftClient$1.createObject(GrizzlyThriftClient.java:203)
	at org.glassfish.grizzly.thrift.client.pool.BaseObjectPool.createIfUnderSpecificSize(BaseObjectPool.java:266)
	... 29 more
Caused by: java.net.ConnectException: Connection refused
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
	at org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler.onConnectedAsync(TCPNIOConnectorHandler.java:187)
	at org.glassfish.grizzly.nio.transport.TCPNIOConnectorHandler$1.connected(TCPNIOConnectorHandler.java:135)
	at org.glassfish.grizzly.nio.transport.TCPNIOConnection.onConnect(TCPNIOConnection.java:234)
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:506)
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
	at org.glassfish.grizzly.strategies.SameThreadIOStrategy.executeIoEvent(SameThreadIOStrategy.java:79)
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.executeIoEvent(AbstractIOStrategy.java:66)
	at org.glassfish.grizzly.nio.SelectorRunner.iterateKeyEvents(SelectorRunner.java:391)
	at org.glassfish.grizzly.nio.SelectorRunner.iterateKeys(SelectorRunner.java:360)
	at org.glassfish.grizzly.nio.SelectorRunner.doSelect(SelectorRunner.java:324)
	at org.glassfish.grizzly.nio.SelectorRunner.run(SelectorRunner.java:255)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
	at java.lang.Thread.run(Thread.java:748)

Sep 26, 2019 12:31:27 AM org.glassfish.grizzly.thrift.client.GrizzlyThriftClient addServer
INFO: added the server successfully. address=localhost/127.0.0.1:7792