Search in sources :

Example 1 with CallerNotMemberException

use of com.hazelcast.spi.exception.CallerNotMemberException in project hazelcast by hazelcast.

the class OperationRunnerImpl method ensureValidMember.

private boolean ensureValidMember(Operation op) {
    if (node.clusterService.getMember(op.getCallerAddress()) != null || isJoinOperation(op) || isWanReplicationOperation(op)) {
        return true;
    }
    Exception error = new CallerNotMemberException(thisAddress, op.getCallerAddress(), op.getPartitionId(), op.getClass().getName(), op.getServiceName());
    handleOperationError(op, error);
    return false;
}
Also used : CallerNotMemberException(com.hazelcast.spi.exception.CallerNotMemberException) HazelcastInstanceNotActiveException(com.hazelcast.core.HazelcastInstanceNotActiveException) PartitionMigratingException(com.hazelcast.spi.exception.PartitionMigratingException) ResponseAlreadySentException(com.hazelcast.spi.exception.ResponseAlreadySentException) HazelcastException(com.hazelcast.core.HazelcastException) RetryableHazelcastException(com.hazelcast.spi.exception.RetryableHazelcastException) QuorumException(com.hazelcast.quorum.QuorumException) WrongTargetException(com.hazelcast.spi.exception.WrongTargetException) CallerNotMemberException(com.hazelcast.spi.exception.CallerNotMemberException) RetryableException(com.hazelcast.spi.exception.RetryableException) IOException(java.io.IOException)

Aggregations

HazelcastException (com.hazelcast.core.HazelcastException)1 HazelcastInstanceNotActiveException (com.hazelcast.core.HazelcastInstanceNotActiveException)1 QuorumException (com.hazelcast.quorum.QuorumException)1 CallerNotMemberException (com.hazelcast.spi.exception.CallerNotMemberException)1 PartitionMigratingException (com.hazelcast.spi.exception.PartitionMigratingException)1 ResponseAlreadySentException (com.hazelcast.spi.exception.ResponseAlreadySentException)1 RetryableException (com.hazelcast.spi.exception.RetryableException)1 RetryableHazelcastException (com.hazelcast.spi.exception.RetryableHazelcastException)1 WrongTargetException (com.hazelcast.spi.exception.WrongTargetException)1 IOException (java.io.IOException)1