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

ClientEngineImpl::getConnectedClientStats re-uses an operation #8628

Closed
jerrinot opened this issue Jul 31, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@jerrinot
Copy link
Contributor

commented Jul 31, 2016

I've got this error shortly after a member started:

Exception in thread "hz._hzInstance_1_dev.cached.thread-3" java.lang.IllegalStateException: An operation[com.hazelcast.client.impl.operations.GetConnectedClientsOperation{serviceName='hz:core:clientEngine', identityHash=1178814838, partitionId=-1, replicaIndex=0, callId=3, invocationTime=1469980997245 (2016-07-31 19:03:17.245), waitTimeout=-1, callTimeout=60000}] can not be used for multiple invocations!
    at com.hazelcast.spi.impl.operationservice.impl.Invocation.invoke0(Invocation.java:218)
    at com.hazelcast.spi.impl.operationservice.impl.Invocation.invoke(Invocation.java:205)
    at com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl.invokeOnTarget(OperationServiceImpl.java:311)
    at com.hazelcast.client.impl.ClientEngineImpl.getConnectedClientStats(ClientEngineImpl.java:459)
    at com.hazelcast.util.PhoneHome.phoneHome(PhoneHome.java:143)
    at com.hazelcast.util.PhoneHome$1.run(PhoneHome.java:80)
    at com.hazelcast.spi.impl.executionservice.impl.SkipOnConcurrentExecutionDecorator.run(SkipOnConcurrentExecutionDecorator.java:40)
    at com.hazelcast.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:212)
    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)
    at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)
    at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)
Jul 31, 2016 7:03:17 PM com.hazelcast.core.LifecycleService

The problem is the GetConnectedClientsOperation is re-used for multiple invocations. This is not allowed - a new operation should be created of each invocation.

@jerrinot jerrinot added this to the 3.7.1 milestone Jul 31, 2016

@jerrinot jerrinot changed the title `ClientEngineImpl::getConnectedClientStats` re-uses an operation ClientEngineImpl::getConnectedClientStats re-uses an operation Jul 31, 2016

jerrinot added a commit to jerrinot/hazelcast that referenced this issue Aug 1, 2016

@jerrinot jerrinot modified the milestones: 3.7, 3.7.1 Aug 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.