bette logging
This commit is contained in:
parent
a005dc2c1f
commit
e5737e3058
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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>();
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue