Skip to content

Windows refreshPartition sleep is not working #293

@ihsandemir

Description

@ihsandemir

On windows builds we observe the following logs:

Jun 03, 2017 06:30:20 AM FINEST: [HazelcastCppClient3.8.2-SNAPSHOT] [dev] [4124] Exception in partitionService::refreshPartitions ExceptionMessage {Authentication error message from server ! Error code:21, Class name that generated the error:com.hazelcast.core.HazelcastInstanceNotActiveException, Hazelcast instance is not ready yet!
	AbstractMessageTask.java line 117 :com.hazelcast.client.impl.protocol.task.AbstractMessageTask.initializeAndProcessMessage
	AbstractMessageTask.java line 95 :com.hazelcast.client.impl.protocol.task.AbstractMessageTask.run
	ClientEngineImpl.java line 600 :com.hazelcast.client.impl.ClientEngineImpl$PriorityPartitionSpecificRunnable.run
	OperationRunnerImpl.java line 142 :com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run
	OperationThread.java line 125 :com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process
	OperationThread.java line 100 :com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.run

Cause error code:0
} at ConnectionManager::authenticate
Jun 03, 2017 06:30:20 AM FINEST: [HazelcastCppClient3.8.2-SNAPSHOT] [dev] [4124] Exception in partitionService::refreshPartitions ExceptionMessage {Authentication error message from server ! Error code:21, Class name that generated the error:com.hazelcast.core.HazelcastInstanceNotActiveException, Hazelcast instance is not ready yet!
	AbstractMessageTask.java line 117 :com.hazelcast.client.impl.protocol.task.AbstractMessageTask.initializeAndProcessMessage
	AbstractMessageTask.java line 95 :com.hazelcast.client.impl.protocol.task.AbstractMessageTask.run
	ClientEngineImpl.java line 600 :com.hazelcast.client.impl.ClientEngineImpl$PriorityPartitionSpecificRunnable.run
	OperationRunnerImpl.java line 142 :com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run
	OperationThread.java line 125 :com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process
	OperationThread.java line 100 :com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.run

Cause error code:0
} at ConnectionManager::authenticate
Jun 03, 2017 06:30:20 AM FINEST: [HazelcastCppClient3.8.2-SNAPSHOT] [dev] [4124] Exception in partitionService::refreshPartitions ExceptionMessage {Authentication error message from server ! Error code:21, Class name that generated the error:com.hazelcast.core.HazelcastInstanceNotActiveException, Hazelcast instance is not ready yet!
	AbstractMessageTask.java line 117 :com.hazelcast.client.impl.protocol.task.AbstractMessageTask.initializeAndProcessMessage
	AbstractMessageTask.java line 95 :com.hazelcast.client.impl.protocol.task.AbstractMessageTask.run
	ClientEngineImpl.java line 600 :com.hazelcast.client.impl.ClientEngineImpl$PriorityPartitionSpecificRunnable.run
	OperationRunnerImpl.java line 142 :com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run
	OperationThread.java line 125 :com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process
	OperationThread.java line 100 :com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.run

Cause error code:0
} at ConnectionManager::authenticate
Jun 03, 2017 06:30:20 AM FINEST: [HazelcastCppClient3.8.2-SNAPSHOT] [dev] [4124] Exception in partitionService::refreshPartitions ExceptionMessage {Authentication error message from server ! Error code:21, Class name that generated the error:com.hazelcast.core.HazelcastInstanceNotActiveException, Hazelcast instance is not ready yet!
	AbstractMessageTask.java line 117 :com.hazelcast.client.impl.protocol.task.AbstractMessageTask.initializeAndProcessMessage
	AbstractMessageTask.java line 95 :com.hazelcast.client.impl.protocol.task.AbstractMessageTask.run
	ClientEngineImpl.java line 600 :com.hazelcast.client.impl.ClientEngineImpl$PriorityPartitionSpecificRunnable.run
	OperationRunnerImpl.java line 142 :com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run
	OperationThread.java line 125 :com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process
	OperationThread.java line 100 :com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.run

Cause error code:0
} at ConnectionManager::authenticate
Jun 03, 2017 06:30:20 AM FINEST: [HazelcastCppClient3.8.2-SNAPSHOT] [dev] [4124] Exception in partitionService::refreshPartitions ExceptionMessage {Authentication error message from server ! Error code:21, Class name that generated the error:com.hazelcast.core.HazelcastInstanceNotActiveException, Hazelcast instance is not ready yet!
	AbstractMessageTask.java line 117 :com.hazelcast.client.impl.protocol.task.AbstractMessageTask.initializeAndProcessMessage
	AbstractMessageTask.java line 95 :com.hazelcast.client.impl.protocol.task.AbstractMessageTask.run
	ClientEngineImpl.java line 600 :com.hazelcast.client.impl.ClientEngineImpl$PriorityPartitionSpecificRunnable.run
	OperationRunnerImpl.java line 142 :com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run
	OperationThread.java line 125 :com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process
	OperationThread.java line 100 :com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.run

Cause error code:0
} at ConnectionManager::authenticate

The refreshPartitions call was supposed to be made every 10 seconds and I would expect the logs at this frequency but as you can see, the logs are too frequently printed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions