Permalink
Browse files

Added INFO level messages to better understand resetting stats in Cli…

…entSocketStats. Expect to remove this after debugging.
  • Loading branch information...
1 parent e6ec7a0 commit adf1c361084ab8fae88bc8c6741e6179d5692050 @jayjwylie jayjwylie committed Nov 12, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/java/voldemort/store/stats/ClientSocketStats.java
@@ -324,6 +324,8 @@ protected void checkMonitoringInterval() {
if(parent == null && statsMap != null) {
int monitoringInterval = this.monitoringInterval.get();
if(monitoringCount % (monitoringInterval + 1) == monitoringInterval) {
+ long startTimeNs = System.nanoTime();
+
// reset all children
Iterator<SocketDestination> it = statsMap.keySet().iterator();
while(it.hasNext()) {
@@ -332,6 +334,10 @@ protected void checkMonitoringInterval() {
}
// reset itself
resetForInterval();
+
+ logger.info("ClientSocketStats(" + System.identityHashCode(this)
+ + ")::checkMonitoringInterval: reset self and all children in "
+ + (startTimeNs - System.nanoTime()) + " ns.");
}
}
}

0 comments on commit adf1c36

Please sign in to comment.