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

[query] ClientQueryBounceTest.testQuery #10107

Closed
hasancelik opened this issue Mar 20, 2017 · 16 comments
Closed

[query] ClientQueryBounceTest.testQuery #10107

hasancelik opened this issue Mar 20, 2017 · 16 comments
Assignees
Labels
Source: Internal PR or issue was opened by an employee Team: Client Team: Core
Milestone

Comments

@hasancelik
Copy link
Contributor

hasancelik commented Mar 20, 2017

master

org.junit.runners.model.TestTimedOutException: test timed out after 300000 milliseconds
	at java.lang.Thread.sleep(Native Method)
	at java.lang.Thread.sleep(Thread.java:340)
	at java.util.concurrent.TimeUnit.sleep(TimeUnit.java:360)
	at com.hazelcast.test.HazelcastTestSupport.sleepSeconds(HazelcastTestSupport.java:269)
	at com.hazelcast.test.bounce.BounceMemberRule.testWithDuration(BounceMemberRule.java:236)
	at com.hazelcast.test.bounce.BounceMemberRule.testRepeatedly(BounceMemberRule.java:203)
	at com.hazelcast.map.QueryBounceTest.prepareAndRunQueryTasks(QueryBounceTest.java:92)
	at com.hazelcast.map.QueryBounceTest.testQuery(QueryBounceTest.java:75)
	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 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 com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:105)
	at com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:97)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.lang.Thread.run(Thread.java:745)

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast/job/Hazelcast-3.x-nightly/com.hazelcast$hazelcast-client/1282/testReport/junit/com.hazelcast.client.map/ClientQueryBounceTest/testQuery/

@hasancelik hasancelik modified the milestones: 3.8.1, 3.9 Mar 20, 2017
@vbekiaris
Copy link
Collaborator

This test executes queries & asserts their results as members of the cluster bounce for a duration of 3 minutes. It should should shutdown before the hard timeout of 5 minutes, however the jitter rule measured accumulated hiccups of 153 seconds during which the test could not make any progress and teardown -> the timeout does not indicate failure.

@hasancelik
Copy link
Contributor Author

org.junit.runners.model.TestTimedOutException: test timed out after 300000 milliseconds
	at java.lang.Thread.sleep(Native Method)
	at java.lang.Thread.sleep(Thread.java:340)
	at java.util.concurrent.TimeUnit.sleep(TimeUnit.java:360)
	at com.hazelcast.test.HazelcastTestSupport.sleepSeconds(HazelcastTestSupport.java:274)
	at com.hazelcast.test.bounce.BounceMemberRule.testWithDuration(BounceMemberRule.java:236)
	at com.hazelcast.test.bounce.BounceMemberRule.testRepeatedly(BounceMemberRule.java:203)
	at com.hazelcast.map.QueryBounceTest.prepareAndRunQueryTasks(QueryBounceTest.java:92)
	at com.hazelcast.map.QueryBounceTest.testQuery(QueryBounceTest.java:75)
	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 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 com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:105)
	at com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:97)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.lang.Thread.run(Thread.java:745)

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast/job/Hazelcast-3.x-nightly/com.hazelcast$hazelcast-client/1290/testReport/junit/com.hazelcast.client.map/ClientQueryBounceTest/testQuery/

@hasancelik
Copy link
Contributor Author

org.junit.runners.model.TestTimedOutException: test timed out after 300000 milliseconds
	at java.lang.Thread.sleep(Native Method)
	at java.lang.Thread.sleep(Thread.java:340)
	at java.util.concurrent.TimeUnit.sleep(TimeUnit.java:360)
	at com.hazelcast.test.HazelcastTestSupport.sleepSeconds(HazelcastTestSupport.java:274)
	at com.hazelcast.test.bounce.BounceMemberRule.testWithDuration(BounceMemberRule.java:236)
	at com.hazelcast.test.bounce.BounceMemberRule.testRepeatedly(BounceMemberRule.java:203)
	at com.hazelcast.map.QueryBounceTest.prepareAndRunQueryTasks(QueryBounceTest.java:92)
	at com.hazelcast.map.QueryBounceTest.testQuery(QueryBounceTest.java:75)
	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 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 com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:105)
	at com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:97)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.lang.Thread.run(Thread.java:745)

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast/job/Hazelcast-3.x-nightly/com.hazelcast$hazelcast-client/1299/testReport/junit/com.hazelcast.client.map/ClientQueryBounceTest/testQuery/

@hasancelik
Copy link
Contributor Author

org.junit.runners.model.TestTimedOutException: test timed out after 300000 milliseconds
	at java.lang.Thread.sleep(Native Method)
	at java.lang.Thread.sleep(Thread.java:340)
	at java.util.concurrent.TimeUnit.sleep(TimeUnit.java:360)
	at com.hazelcast.test.HazelcastTestSupport.sleepSeconds(HazelcastTestSupport.java:279)
	at com.hazelcast.test.bounce.BounceMemberRule.testWithDuration(BounceMemberRule.java:236)
	at com.hazelcast.test.bounce.BounceMemberRule.testRepeatedly(BounceMemberRule.java:203)
	at com.hazelcast.map.QueryBounceTest.prepareAndRunQueryTasks(QueryBounceTest.java:92)
	at com.hazelcast.map.QueryBounceTest.testQuery(QueryBounceTest.java:75)
	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 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 com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:105)
	at com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:97)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.lang.Thread.run(Thread.java:745)

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast/job/Hazelcast-3.x-nightly/com.hazelcast$hazelcast-client/1302/testReport/junit/com.hazelcast.client.map/ClientQueryBounceTest/testQuery/

@hasancelik
Copy link
Contributor Author

org.junit.runners.model.TestTimedOutException: test timed out after 300000 milliseconds
	at java.lang.Thread.sleep(Native Method)
	at java.lang.Thread.sleep(Thread.java:340)
	at java.util.concurrent.TimeUnit.sleep(TimeUnit.java:360)
	at com.hazelcast.test.HazelcastTestSupport.sleepSeconds(HazelcastTestSupport.java:280)
	at com.hazelcast.test.bounce.BounceMemberRule.testWithDuration(BounceMemberRule.java:236)
	at com.hazelcast.test.bounce.BounceMemberRule.testRepeatedly(BounceMemberRule.java:203)
	at com.hazelcast.map.QueryBounceTest.prepareAndRunQueryTasks(QueryBounceTest.java:92)
	at com.hazelcast.map.QueryBounceTest.testQuery(QueryBounceTest.java:75)
	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 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 com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:105)
	at com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:97)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.lang.Thread.run(Thread.java:745)

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast/job/Hazelcast-3.x-nightly/com.hazelcast$hazelcast-client/1313/testReport/junit/com.hazelcast.client.map/ClientQueryBounceTest/testQuery/

@vbekiaris
Copy link
Collaborator

Fixed by #10181

@mmedenjak
Copy link
Contributor

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast/job/Hazelcast-3.x-nightly/1321/#showFailuresLink

com.hazelcast.core.OperationTimeoutException: ClientInvocation{clientMessageType=5, callIdSequence=com.hazelcast.client.spi.impl.CallIdSequence$CallIdSequenceFailFast@766e17d1, target=connection MockedClientConnection{, localAddress=[127.0.0.1]:40051, super=ClientConnection{alive=true, connectionId=1, socketChannel=null, remoteEndpoint=[127.0.0.1]:5040, lastReadTime=2017-04-22 04:43:41.813, lastWriteTime=2017-04-22 04:43:41.812, closedTime=never, lastHeartbeatRequested=never, lastHeartbeatReceived=never, connected server version=3.9-SNAPSHOT}}, sendConnection=MockedClientConnection{, localAddress=[127.0.0.1]:40051, super=ClientConnection{alive=true, connectionId=1, socketChannel=null, remoteEndpoint=[127.0.0.1]:5040, lastReadTime=2017-04-22 04:43:41.813, lastWriteTime=2017-04-22 04:43:41.812, closedTime=never, lastHeartbeatRequested=never, lastHeartbeatReceived=never, connected server version=3.9-SNAPSHOT}}} timed out by 565 ms
	at com.hazelcast.client.spi.impl.ClientInvocation.notifyException(ClientInvocation.java:198)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.handleClientMessage(ClientInvocationServiceSupport.java:332)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.process(ClientInvocationServiceSupport.java:314)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.doRun(ClientInvocationServiceSupport.java:307)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.run(ClientInvocationServiceSupport.java:291)
	at ------ submitted from ------.(Unknown Source)
	at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:93)
	at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:33)
	at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:155)
	at com.hazelcast.client.spi.ProxyManager.initialize(ProxyManager.java:354)
	at com.hazelcast.client.spi.ProxyManager.initializeWithRetry(ProxyManager.java:312)
	at com.hazelcast.client.spi.ProxyManager.getOrCreateProxy(ProxyManager.java:293)
	at com.hazelcast.client.impl.HazelcastClientInstanceImpl.getDistributedObject(HazelcastClientInstanceImpl.java:660)
	at com.hazelcast.client.impl.HazelcastClientInstanceImpl.getMap(HazelcastClientInstanceImpl.java:475)
	at com.hazelcast.client.impl.HazelcastClientProxy.getMap(HazelcastClientProxy.java:118)
	at com.hazelcast.map.QueryBounceTest$QueryRunnable.run(QueryBounceTest.java:131)
	at com.hazelcast.test.bounce.BounceMemberRule$TestTaskRunable.run(BounceMemberRule.java:548)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast/job/Hazelcast-3.x-nightly/com.hazelcast$hazelcast-client/1320/#showFailuresLink

com.hazelcast.core.OperationTimeoutException: ClientInvocation{clientMessageType=5, callIdSequence=com.hazelcast.client.spi.impl.CallIdSequence$CallIdSequenceFailFast@5b81e853, target=connection MockedClientConnection{, localAddress=[127.0.0.1]:40612, super=ClientConnection{alive=true, connectionId=1, socketChannel=null, remoteEndpoint=[127.0.0.1]:5110, lastReadTime=2017-04-21 16:01:39.950, lastWriteTime=2017-04-21 16:01:39.949, closedTime=never, lastHeartbeatRequested=2017-04-21 15:59:39.270, lastHeartbeatReceived=2017-04-21 15:59:39.270, connected server version=3.9-SNAPSHOT}}, sendConnection=MockedClientConnection{, localAddress=[127.0.0.1]:40612, super=ClientConnection{alive=true, connectionId=1, socketChannel=null, remoteEndpoint=[127.0.0.1]:5110, lastReadTime=2017-04-21 16:01:39.950, lastWriteTime=2017-04-21 16:01:39.949, closedTime=never, lastHeartbeatRequested=2017-04-21 15:59:39.270, lastHeartbeatReceived=2017-04-21 15:59:39.270, connected server version=3.9-SNAPSHOT}}} timed out by 330 ms
	at com.hazelcast.client.spi.impl.ClientInvocation.notifyException(ClientInvocation.java:198)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.handleClientMessage(ClientInvocationServiceSupport.java:332)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.process(ClientInvocationServiceSupport.java:314)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.doRun(ClientInvocationServiceSupport.java:307)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.run(ClientInvocationServiceSupport.java:291)
	at ------ submitted from ------.(Unknown Source)
	at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:93)
	at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:33)
	at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:155)
	at com.hazelcast.client.spi.ProxyManager.initialize(ProxyManager.java:354)
	at com.hazelcast.client.spi.ProxyManager.initializeWithRetry(ProxyManager.java:312)
	at com.hazelcast.client.spi.ProxyManager.getOrCreateProxy(ProxyManager.java:293)
	at com.hazelcast.client.impl.HazelcastClientInstanceImpl.getDistributedObject(HazelcastClientInstanceImpl.java:660)
	at com.hazelcast.client.impl.HazelcastClientInstanceImpl.getMap(HazelcastClientInstanceImpl.java:475)
	at com.hazelcast.client.impl.HazelcastClientProxy.getMap(HazelcastClientProxy.java:118)
	at com.hazelcast.map.QueryBounceTest$QueryRunnable.run(QueryBounceTest.java:131)
	at com.hazelcast.test.bounce.BounceMemberRule$TestTaskRunable.run(BounceMemberRule.java:548)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast/job/Hazelcast-3.x-nightly/1318/

com.hazelcast.core.OperationTimeoutException: ClientInvocation{clientMessageType=5, callIdSequence=com.hazelcast.client.spi.impl.CallIdSequence$CallIdSequenceFailFast@48ba7afc, target=connection MockedClientConnection{, localAddress=[127.0.0.1]:40620, super=ClientConnection{alive=true, connectionId=1, socketChannel=null, remoteEndpoint=[127.0.0.1]:5138, lastReadTime=2017-04-20 16:55:20.897, lastWriteTime=2017-04-20 16:55:20.897, closedTime=never, lastHeartbeatRequested=never, lastHeartbeatReceived=never, connected server version=3.9-SNAPSHOT}}, sendConnection=MockedClientConnection{, localAddress=[127.0.0.1]:40620, super=ClientConnection{alive=true, connectionId=1, socketChannel=null, remoteEndpoint=[127.0.0.1]:5138, lastReadTime=2017-04-20 16:55:20.897, lastWriteTime=2017-04-20 16:55:20.897, closedTime=never, lastHeartbeatRequested=never, lastHeartbeatReceived=never, connected server version=3.9-SNAPSHOT}}} timed out by 290 ms
	at com.hazelcast.client.spi.impl.ClientInvocation.notifyException(ClientInvocation.java:198)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.handleClientMessage(ClientInvocationServiceSupport.java:332)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.process(ClientInvocationServiceSupport.java:314)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.doRun(ClientInvocationServiceSupport.java:307)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.run(ClientInvocationServiceSupport.java:291)
	at ------ submitted from ------.(Unknown Source)
	at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:93)
	at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:33)
	at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:155)
	at com.hazelcast.client.spi.ProxyManager.initialize(ProxyManager.java:354)
	at com.hazelcast.client.spi.ProxyManager.initializeWithRetry(ProxyManager.java:312)
	at com.hazelcast.client.spi.ProxyManager.getOrCreateProxy(ProxyManager.java:293)
	at com.hazelcast.client.impl.HazelcastClientInstanceImpl.getDistributedObject(HazelcastClientInstanceImpl.java:660)
	at com.hazelcast.client.impl.HazelcastClientInstanceImpl.getMap(HazelcastClientInstanceImpl.java:475)
	at com.hazelcast.client.impl.HazelcastClientProxy.getMap(HazelcastClientProxy.java:118)
	at com.hazelcast.map.QueryBounceTest$QueryRunnable.<init>(QueryBounceTest.java:123)
	at com.hazelcast.map.QueryBounceTest.prepareAndRunQueryTasks(QueryBounceTest.java:90)
	at com.hazelcast.map.QueryBounceTest.testQuery(QueryBounceTest.java:75)
	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 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 com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:105)
	at com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:97)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.lang.Thread.run(Thread.java:745)

@mmedenjak mmedenjak reopened this Apr 24, 2017
@mmedenjak
Copy link
Contributor

mmedenjak commented Apr 24, 2017

Possible fix : #10405.

Reopen if issue persists after PR is merged.

@vbekiaris
Copy link
Collaborator

@hasancelik
Copy link
Contributor Author

com.hazelcast.core.OperationTimeoutException: ClientInvocation{clientMessageType=5, callIdSequence=com.hazelcast.client.spi.impl.CallIdSequence$CallIdSequenceFailFast@31e18e7a, target=connection MockedClientConnection{, localAddress=[127.0.0.1]:40907, super=ClientConnection{alive=true, connectionId=1, socketChannel=null, remoteEndpoint=[127.0.0.1]:5906, lastReadTime=2017-04-24 03:12:32.156, lastWriteTime=2017-04-24 03:12:32.156, closedTime=never, lastHeartbeatRequested=never, lastHeartbeatReceived=never, connected server version=3.9-SNAPSHOT}}, sendConnection=MockedClientConnection{, localAddress=[127.0.0.1]:40907, super=ClientConnection{alive=true, connectionId=1, socketChannel=null, remoteEndpoint=[127.0.0.1]:5906, lastReadTime=2017-04-24 03:12:32.156, lastWriteTime=2017-04-24 03:12:32.156, closedTime=never, lastHeartbeatRequested=never, lastHeartbeatReceived=never, connected server version=3.9-SNAPSHOT}}} timed out by 27 ms
	at com.hazelcast.client.spi.impl.ClientInvocation.notifyException(ClientInvocation.java:199)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.handleClientMessage(ClientInvocationServiceSupport.java:332)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.process(ClientInvocationServiceSupport.java:314)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.doRun(ClientInvocationServiceSupport.java:307)
	at com.hazelcast.client.spi.impl.ClientInvocationServiceSupport$ResponseThread.run(ClientInvocationServiceSupport.java:291)
	at ------ submitted from ------.(Unknown Source)
	at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:93)
	at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:33)
	at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:155)
	at com.hazelcast.client.spi.ProxyManager.initialize(ProxyManager.java:354)
	at com.hazelcast.client.spi.ProxyManager.initializeWithRetry(ProxyManager.java:312)
	at com.hazelcast.client.spi.ProxyManager.getOrCreateProxy(ProxyManager.java:293)
	at com.hazelcast.client.impl.HazelcastClientInstanceImpl.getDistributedObject(HazelcastClientInstanceImpl.java:660)
	at com.hazelcast.client.impl.HazelcastClientInstanceImpl.getMap(HazelcastClientInstanceImpl.java:475)
	at com.hazelcast.client.impl.HazelcastClientProxy.getMap(HazelcastClientProxy.java:118)
	at com.hazelcast.map.QueryBounceTest$QueryRunnable.run(QueryBounceTest.java:131)
	at com.hazelcast.test.bounce.BounceMemberRule$TestTaskRunable.run(BounceMemberRule.java:548)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	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)

https://hazelcast-l337.ci.cloudbees.com/view/Sonar/job/Hazelcast-3.x-sonar/com.hazelcast$hazelcast-client/1477/testReport/junit/com.hazelcast.client.map/ClientQueryBounceTest/testQuery/

@hasancelik hasancelik reopened this Apr 24, 2017
@vbekiaris
Copy link
Collaborator

OperationTimeoutException while obtaining proxy should be fixed by #10404

@hasancelik
Copy link
Contributor Author

maintenance

java.lang.AssertionError: Obtained 995 results for query 'age >= 76720 AND age < 77720' expected:<1000> but was:<995>
	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 com.hazelcast.map.QueryBounceTest$QueryRunnable.run(QueryBounceTest.java:135)
	at com.hazelcast.test.bounce.BounceMemberRule$TestTaskRunable.run(BounceMemberRule.java:505)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast%20Maintenance/job/Hazelcast-3.maintenance-nightly/com.hazelcast$hazelcast-client/1269/testReport/junit/com.hazelcast.client.map/ClientQueryBounceTest/testQuery/

@hasancelik hasancelik reopened this Jul 3, 2017
@sancar sancar modified the milestones: 3.8.4, 3.8.2 Jul 4, 2017
@tombujok tombujok modified the milestones: 3.8.5, 3.8.4 Jul 31, 2017
@Donnerbart
Copy link
Contributor

This also fails in the master:
com.hazelcast.map.QueryBounceTest.testQueryWithIndexes

java.lang.AssertionError: Obtained 997 results for query 'age >= 50290 AND age < 51290' expected:<1000> but was:<997>
	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 com.hazelcast.map.QueryBounceTest$QueryRunnable.run(QueryBounceTest.java:141)
	at com.hazelcast.test.bounce.BounceMemberRule$TestTaskRunable.run(BounceMemberRule.java:606)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	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)

https://hazelcast-l337.ci.cloudbees.com/view/Sonar/job/Hazelcast-3.x-sonar/lastCompletedBuild/com.hazelcast$hazelcast/testReport/com.hazelcast.map/QueryBounceTest/testQueryWithIndexes/

@Donnerbart Donnerbart modified the milestones: 3.9, 3.8.5 Aug 17, 2017
@vbekiaris vbekiaris removed their assignment Sep 11, 2017
@mmedenjak mmedenjak changed the title ClientQueryBounceTest.testQuery [query] ClientQueryBounceTest.testQuery Sep 12, 2017
@hasancelik
Copy link
Contributor Author

maintenance

java.lang.IllegalStateException: Unable to connect to any address in the config! The following addresses were tried: [[localhost.localdomain]:5139]
	at com.hazelcast.client.spi.impl.ClusterListenerSupport.connectToCluster(ClusterListenerSupport.java:178)
	at com.hazelcast.client.spi.impl.ClientClusterServiceImpl.start(ClientClusterServiceImpl.java:189)
	at com.hazelcast.client.impl.HazelcastClientInstanceImpl.start(HazelcastClientInstanceImpl.java:404)
	at com.hazelcast.client.test.TestHazelcastFactory.newHazelcastClient(TestHazelcastFactory.java:78)
	at com.hazelcast.client.test.bounce.ClientDriverFactory.createTestDrivers(ClientDriverFactory.java:42)
	at com.hazelcast.test.bounce.BounceMemberRule.setup(BounceMemberRule.java:293)
	at com.hazelcast.test.bounce.BounceMemberRule.access$100(BounceMemberRule.java:116)
	at com.hazelcast.test.bounce.BounceMemberRule$BouncingClusterStatement.evaluate(BounceMemberRule.java:269)
	at com.hazelcast.test.jitter.JitterRule$1.evaluate(JitterRule.java:103)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at com.hazelcast.test.HazelcastSerialClassRunner.runChild(HazelcastSerialClassRunner.java:50)
	at com.hazelcast.test.HazelcastSerialClassRunner.runChild(HazelcastSerialClassRunner.java:29)
	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 com.hazelcast.test.AbstractHazelcastClassRunner$1.evaluate(AbstractHazelcastClassRunner.java:280)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	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.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:108)
	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:78)
	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:144)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast%20Maintenance/job/Hazelcast-3.maintenance-nightly/com.hazelcast$hazelcast-client/1346/testReport/junit/com.hazelcast.client.map/ClientQueryBounceTest/testQuery/

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast%20Maintenance/job/Hazelcast-3.maintenance-nightly/com.hazelcast$hazelcast-client/1347/testReport/junit/com.hazelcast.client.map/ClientQueryBounceTest/testQuery/

@hasancelik
Copy link
Contributor Author

maintenance

java.lang.IllegalStateException: Unable to connect to any address in the config! The following addresses were tried: [[localhost.localdomain]:5109]
	at com.hazelcast.client.spi.impl.ClusterListenerSupport.connectToCluster(ClusterListenerSupport.java:178)
	at com.hazelcast.client.spi.impl.ClientClusterServiceImpl.start(ClientClusterServiceImpl.java:189)
	at com.hazelcast.client.impl.HazelcastClientInstanceImpl.start(HazelcastClientInstanceImpl.java:404)
	at com.hazelcast.client.test.TestHazelcastFactory.newHazelcastClient(TestHazelcastFactory.java:78)
	at com.hazelcast.client.test.bounce.ClientDriverFactory.createTestDrivers(ClientDriverFactory.java:42)
	at com.hazelcast.test.bounce.BounceMemberRule.setup(BounceMemberRule.java:293)
	at com.hazelcast.test.bounce.BounceMemberRule.access$100(BounceMemberRule.java:116)
	at com.hazelcast.test.bounce.BounceMemberRule$BouncingClusterStatement.evaluate(BounceMemberRule.java:269)
	at com.hazelcast.test.jitter.JitterRule$1.evaluate(JitterRule.java:103)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at com.hazelcast.test.HazelcastSerialClassRunner.runChild(HazelcastSerialClassRunner.java:50)
	at com.hazelcast.test.HazelcastSerialClassRunner.runChild(HazelcastSerialClassRunner.java:29)
	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 com.hazelcast.test.AbstractHazelcastClassRunner$1.evaluate(AbstractHazelcastClassRunner.java:286)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	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.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:108)
	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:78)
	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:144)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast%20Maintenance/job/Hazelcast-3.maintenance-nightly/com.hazelcast$hazelcast-client/1355/testReport/junit/com.hazelcast.client.map/ClientQueryBounceTest/testQuery/

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast%20Maintenance/job/Hazelcast-3.maintenance-nightly/com.hazelcast$hazelcast-client/1354/testReport/junit/com.hazelcast.client.map/ClientQueryBounceTest/testQuery/

https://hazelcast-l337.ci.cloudbees.com/view/Hazelcast%20Maintenance/job/Hazelcast-3.maintenance-nightly/com.hazelcast$hazelcast-client/1353/testReport/junit/com.hazelcast.client.map/ClientQueryBounceTest/testQuery/

ihsandemir added a commit to ihsandemir/hazelcast that referenced this issue Sep 26, 2017
mmedenjak pushed a commit to mmedenjak/hazelcast that referenced this issue Sep 28, 2017
Since the migration finalizations can be called concurrently, the
owned partitions might be reloaded concurrently. This means that the
set of owned partitions first might be set to a newer version and
then to an older version, leading to an incorrect set of owned
partitions.
This affects the query engine when it performs queries off the
partition thread as every member reports its own set of owned
partitions which is in this case incorrect. If the results from the
actual partition owner are received by the query engine later than
from the "lying" partition owner, they are discarded. This can cause
the query engine to return incorrect results until the partitions are
reloaded again on an another migration.
The fix reloads the partitions in a CAS loop ensuring that the newest
partition state will always be applied.

Also, added some type parameters and improved javadoc.

Fixes :
hazelcast#10107
hazelcast#9870
hazelcast#10776
@mdogan mdogan closed this as completed in 6313657 Sep 28, 2017
mmedenjak pushed a commit to mmedenjak/hazelcast that referenced this issue Sep 28, 2017
Since the migration finalizations can be called concurrently, the
owned partitions might be reloaded concurrently. This means that the
set of owned partitions first might be set to a newer version and
then to an older version, leading to an incorrect set of owned
partitions.
This affects the query engine when it performs queries off the
partition thread as every member reports its own set of owned
partitions which is in this case incorrect. If the results from the
actual partition owner are received by the query engine later than
from the "lying" partition owner, they are discarded. This can cause
the query engine to return incorrect results until the partitions are
reloaded again on an another migration.
The fix reloads the partitions in a CAS loop ensuring that the newest
partition state will always be applied.

Also, added some type parameters and improved javadoc.

Fixes :
hazelcast#10107
hazelcast#9870
hazelcast#10776
@mmedenjak mmedenjak added the Source: Internal PR or issue was opened by an employee label Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source: Internal PR or issue was opened by an employee Team: Client Team: Core
Projects
None yet
Development

No branches or pull requests

8 participants