Fixes issue JCBC-26 - CPU pegged with an idle connection #1

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants

http://www.couchbase.com/issues/browse/JCBC-26

The thread was sitting in a tight loop when there was nothing to do. This adds a timeout to the write queue polling method so that it waits for something to do. Increasing the timeout will further reduce looping but will increase the latency when reconfiguring a client or shutting down a view.

Member

mikewied commented Apr 29, 2012

I've had a change in review that is very similar to yours. The SDK guys just haven't gotten around to reviewing it yet. If they like the poll with timeout better then we can push this change through.

http://review.couchbase.org/#change,14959

Owner

ingenthr commented May 4, 2013

Long since merged, closing here.

@ingenthr ingenthr closed this May 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment