Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7 alpha 2
-
Fix Version/s: 2.0-beta
-
Component/s: couchbase-bucket
-
Security Level: Public
-
Labels:None
-
Flagged:Impediment
Description
We need some fixed coarse grain server side timeout for the SYNC command to prevent SYNC requests from using a connection forever.
We need to balance the amount with the fact that SYNC ops could take some while to happen for long lists of keys.
Proposed value 30 sec [Matt, Dustin, Jan, does that make sense?]
We need to balance the amount with the fact that SYNC ops could take some while to happen for long lists of keys.
Proposed value 30 sec [Matt, Dustin, Jan, does that make sense?]
I'll recommend 2.5s. That's enough time for a TCP retransmit, if needed, plus a little bit of slop. Sadly, it's also enough time to easily overwhelm the downstreams, so may need a separate pool for things that can block in most clients.
It should be noted that this can still mess up applications, since their logic may rely on sync and can quickly block threads at that level. This should have flags all over it in the SDK.