Skip to content

Commit

Permalink
Fixed a typo and added a counter to track reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
smadappa committed Nov 6, 2016
1 parent 4ba42e4 commit 5b7d39a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void run() {
try {
readData = client.get(canonicalKey, ct, false, false);
} catch (Exception e) {
log.error("Error readig the data", e);
log.error("Error reading the data", e);
}
if(log.isDebugEnabled()) log.debug("Add : Read existing data for: APP " + _appName + ", key " + canonicalKey + "; ServerGroup : " + client.getServerGroupName());
if(readData != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ public long decr(String key, long by, long def, int exp) {
}

public void reconnect(EVCacheNodeImpl evcNode ) {
EVCacheMetricsFactory.getCounter(appName + "-RECONNECT", evcNode.getBaseTags()).increment();
mconn.queueReconnect(evcNode);
}
}

0 comments on commit 5b7d39a

Please sign in to comment.