Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
2.5.6
-
None
Description
I am unsure as to whether this is a Python SDK bug, libcouchbase bug or memcached bug (or even a bug in my code) but I think this is possibly the best place to start.
Sporadically if I make a stats call after doing nothing for a little while I'll get one of these:
1
|
WARNING:couchbase.server:[2] (SRV=0x1bbc970,IX=0) Got socket error 0x2d (L:640)
|
2
|
WARNING:couchbase.server:[2] (SRV=0x1bbc970,IX=0) Failing command (pkt=0x23af2a0, opaque=2, opcode=0x10) with error 0x2d (L:380)
|
3
|
INFO:couchbase.connection:[2] (SOCK=0x1c19de0) Starting. Timeout=2500000us (L:450)
|
4
|
[]
|
5
|
INFO:couchbase.confmon:[2] Not applying configuration received via CCCP. No changes detected. A.rev=126, B.rev=126 (L:166)
|
6
|
INFO:couchbase.cccp:[2] Re-Issuing CCCP Command on server struct 0x1bbc970 (db:11210) (L:110)
|
7
|
INFO:couchbase.connection:[2] (SOCK=0x1c19de0) Connected (L:116)
|
8
|
ERROR:tornado.application:Uncaught exception GET /dashboard (172.17.16.117)
|
9
|
Traceback (most recent call last):
|
10
|
File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 1445, in _execute
|
11
|
result = yield result
|
12
|
File "/usr/local/lib/python2.7/site-packages/tornado/gen.py", line 1008, in run
|
13
|
value = future.result()
|
14
|
File "/usr/local/lib/python2.7/site-packages/tornado/concurrent.py", line 232, in result
|
15
|
raise_exc_info(self._exc_info)
|
16
|
File "/usr/local/lib/python2.7/site-packages/tornado/gen.py", line 1017, in run
|
17
|
yielded = self.gen.send(value)
|
18
|
File "/supportal/controllers/__init__.py", line 25, in get
|
19
|
[v for k, v in mortimer_stats['curr_items'].iteritems()])
|
20
|
KeyError: 'curr_items'
|
from this code (using txcouchbase with Tornado):
1
|
@gen.coroutine |
2
|
def get(self): |
3
|
mortimer_stats = yield buckets.mortimer.stats() |
4
|
mortimer_stat_count = sum( |
5
|
[v for k, v in mortimer_stats['curr_items'].iteritems()]) |