Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

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

Closed
Velasticus wants to merge 1 commit into
couchbase:masterfrom
Velasticus:master
Closed

Fixes issue JCBC-26 - CPU pegged with an idle connection#1
Velasticus wants to merge 1 commit into
couchbase:masterfrom
Velasticus:master

Conversation

@Velasticus

Copy link
Copy Markdown

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.

@mikewied

Copy link
Copy Markdown
Contributor

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

@ingenthr

ingenthr commented May 4, 2013

Copy link
Copy Markdown
Contributor

Long since merged, closing here.

@ingenthr ingenthr closed this May 4, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants