Permalink
Browse files

MB-100: memcached stats exception handling

Change-Id: I3a2affbfb405984c4c04f807a18e75cb3e56d867
Reviewed-on: http://review.couchbase.org/22583
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>
  • Loading branch information...
1 parent dbc1085 commit 69c5b72b21e8044971cedf3d8caa63022fb353f6 @ronniedada ronniedada committed with pavel-paulau Nov 16, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 lib/membase/performance/stats.py
@@ -513,10 +513,14 @@ def membase_stats(self, nodes, bucket, frequency, verbose=False):
stats["time"] = time.time()
stats["ip"] = mc.host
d[mc.host]["snapshots"].append(stats)
- timings = mc.stats('timings')
- d[mc.host]["timings"].append(timings)
- dispatcher = mc.stats('dispatcher')
- d[mc.host]["dispatcher"].append(dispatcher)
+ try:
+ timings = mc.stats('timings')
+ d[mc.host]["timings"].append(timings)
+ dispatcher = mc.stats('dispatcher')
+ d[mc.host]["dispatcher"].append(dispatcher)
+ except EOFError, e:
+ log.error("Unable to get timings/dispatcher stats {0}: {1}"\
+ .format(mc.host, e))
start_time = str(self._task["time"])
for mc in mcs:

0 comments on commit 69c5b72

Please sign in to comment.