[PYCBC-26] Client throws intermittent "Exception in thread dispatcher-thread" errors Created: 22/Mar/12  Updated: 04/May/13  Resolved: 04/May/13

Status: Closed
Project: Couchbase Python Client Library
Component/s: None
Affects Version/s: 0.5
Fix Version/s: 0.9.0
Security Level: Public

Type: Bug Priority: Major
Reporter: John Zablocki (Inactive) Assignee: Mark Nunberg
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Windows 7, Python 2.7

While working on the changes for 0.6, I started to get these errors. They went away after some time and I haven't seen them since (though I've used the Python client minimally since the 0.6 release). However, a user reported a similar experience on the forums today. I don't have steps to recreate, but wanted to make note of this as it's no longer isolated to my setup.


Exception in thread dispatcher-thread (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
  File "/usr/lib64/python2.6/threading.py", line 484, in run
  File "/usr/lib/python2.6/site-packages/couchbase/couchbaseclient.py", line 661, in _start_dispatcher
  File "/usr/lib/python2.6/site-packages/couchbase/couchbaseclient.py", line 968, in dispatch
  File "/usr/lib64/python2.6/Queue.py", line 174, in get
<type 'exceptions.TypeError'>: 'NoneType' object is not callable

Comment by James Boylan [ 30/Apr/12 ]
I have also seen this issue manifest on a Linux system running the 0.6 Client Library for Python. Tested both with Python 2.6 and 2.7. It seems to stem from the threading being done in the client library. ie, threads don't seem to be exiting correctly resulting in the error.
Generated at Tue Oct 21 10:49:36 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.