bette logging

This commit is contained in:
kimchy 2010-05-16 01:09:50 +03:00
parent a005dc2c1f
commit e5737e3058
5 changed files with 4 additions and 7 deletions

View File

@ -214,7 +214,7 @@ public class MasterFaultDetection extends AbstractComponent {
int retryCount = ++MasterFaultDetection.this.retryCount;
logger.trace("Master [{}] failed to ping, retry [{}] out of [{}]", exp, masterNode, retryCount, pingRetryCount);
if (retryCount >= pingRetryCount) {
logger.trace("Master [{}] failed on ping", masterNode);
logger.debug("Master [{}] failed on ping, tried [{}] times, each with [{}] timeout", masterNode, pingRetryCount, pingRetryTimeout);
// not good, failure
notifyMasterFailure(sentToNode);
}

View File

@ -206,7 +206,7 @@ public class NodesFaultDetection extends AbstractComponent {
int retryCount = ++nodeFD.retryCount;
logger.trace("Node [{}] failed to ping, retry [{}] out of [{}]", exp, node, retryCount, pingRetryCount);
if (retryCount >= pingRetryCount) {
logger.trace("Node [{}] failed on ping", node);
logger.debug("Node [{}] failed on ping, tried [{}] times, each with [{}] timeout", node, pingRetryCount, pingRetryTimeout);
// not good, failure
if (nodesFD.remove(node) != null) {
notifyNodeFailure(node);

View File

@ -273,7 +273,7 @@ public class RecoveryAction extends AbstractIndexShardComponent implements Close
}
recoveryStatus.phase1TotalSize = totalSize;
logger.trace("Recovery [phase1] to {}: recovering [{}] files with total size of [{}]", new Object[]{node, snapshot.getFiles().length, new SizeValue(totalSize)});
logger.trace("Recovery [phase1] to {}: recovering [{}] files with total size of [{}]", node, snapshot.getFiles().length, new SizeValue(totalSize));
final CountDownLatch latch = new CountDownLatch(snapshot.getFiles().length);
final AtomicReference<Exception> lastException = new AtomicReference<Exception>();

View File

@ -65,11 +65,8 @@ public class TransportService extends AbstractLifecycleComponent<TransportServic
final CopyOnWriteArrayList<TransportConnectionListener> connectionListeners = new CopyOnWriteArrayList<TransportConnectionListener>();
final AtomicLong rxBytes = new AtomicLong();
final AtomicLong rxCount = new AtomicLong();
final AtomicLong txBytes = new AtomicLong();
final AtomicLong txCount = new AtomicLong();
// An LRU (don't really care about concurrency here) that holds the latest timed out requests so if they

View File

@ -63,7 +63,7 @@ public class MessageChannelHandler extends SimpleChannelUpstreamHandler {
int size = buffer.getInt(buffer.readerIndex() - 4);
transportServiceAdapter.received(size);
transportServiceAdapter.received(size + 4);
int markedReaderIndex = buffer.readerIndex();
int expectedIndexReader = markedReaderIndex + size;