private void logUnknownAddressesInPartitionTable(Address sender, Set<Address> unknownAddresses) { if (!unknownAddresses.isEmpty() && logger.isWarningEnabled()) { StringBuilder s = new StringBuilder("Following unknown addresses are found in partition table") .append(" sent from master[").append(sender).append("].") .append(" (Probably they have recently joined or left the cluster.)") .append(" {"); for (Address address : unknownAddresses) { s.append("\n\t").append(address); } s.append("\n}"); logger.warning(s.toString()); } }
protected void handleExceptionWhileProcessingMetadata(Member member, Exception e) { if (e instanceof IllegalStateException) { // log at finest when // HazelcastInstanceNotActive, HazelcastClientNotActive or HazelcastClientOffline exception logger.finest(e); } else if (logger.isWarningEnabled()) { logger.warning(format("Can't fetch or extract invalidation meta-data of %s", member), e); } }
protected void handleExceptionWhileProcessingMetadata(Member member, Exception e) { if (e instanceof IllegalStateException) { // log at finest when // HazelcastInstanceNotActive, HazelcastClientNotActive or HazelcastClientOffline exception logger.finest(e); } else if (logger.isWarningEnabled()) { logger.warning(format("Can't fetch or extract invalidation meta-data of %s", member), e); } }
if (logger.isWarningEnabled()) { StringBuilder s = new StringBuilder("Following unknown addresses are found in partition table") .append(" sent from master[").append(sender).append("].")
private void handleUnexpectedEvent(QueryCacheEventData event) { // first add sequence of this unexpected event to broken-sequences int partitionId = event.getPartitionId(); long sequence = event.getSequence(); Long prev = brokenSequences.putIfAbsent(partitionId, sequence); // when prev != null, this means we already notified before if (prev != null) { return; } // notify users' EventLostListener InternalQueryCache queryCache = getQueryCache(); if (queryCache != null) { if (logger.isWarningEnabled()) { long currentSequence = sequenceProvider.getSequence(partitionId); logger.warning(format("Event lost detected for queryCache=`%s`: " + "partitionId=%d, expectedSequence=%d, " + "foundSequence=%d, cacheSize=%d", queryCache.getCacheId(), partitionId, currentSequence + 1L, sequence, queryCache.size())); } publishEventLost(context, info.getMapName(), info.getCacheId(), event.getPartitionId(), queryCache.getExtractors()); } }
private void handleUnexpectedEvent(QueryCacheEventData event) { // first add sequence of this unexpected event to broken-sequences int partitionId = event.getPartitionId(); long sequence = event.getSequence(); Long prev = brokenSequences.putIfAbsent(partitionId, sequence); // when prev != null, this means we already notified before if (prev != null) { return; } // notify users' EventLostListener InternalQueryCache queryCache = getQueryCache(); if (queryCache != null) { if (logger.isWarningEnabled()) { long currentSequence = sequenceProvider.getSequence(partitionId); logger.warning(format("Event lost detected for queryCache=`%s`: " + "partitionId=%d, expectedSequence=%d, " + "foundSequence=%d, cacheSize=%d", queryCache.getCacheId(), partitionId, currentSequence + 1L, sequence, queryCache.size())); } publishEventLost(context, info.getMapName(), info.getCacheId(), event.getPartitionId(), queryCache.getExtractors()); } }