Skip to content

Commit

Permalink
Added INFO level messages to better understand resetting stats in Cli…
Browse files Browse the repository at this point in the history
…entSocketStats. Expect to remove this after debugging.
  • Loading branch information
jayjwylie committed Jan 15, 2013
1 parent e6ec7a0 commit adf1c36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/java/voldemort/store/stats/ClientSocketStats.java
Expand Up @@ -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()) {
Expand All @@ -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.");
}
}
}
Expand Down

0 comments on commit adf1c36

Please sign in to comment.