[JCBC-269] subsequent resubscribers should not run if a resubscriber is successful Created: 13/Mar/13 Updated: 06/Sep/13
|Project:||Couchbase Java Client|
|Reporter:||Matt Ingenthron||Assignee:||Michael Nitschinger|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
When investigating a case recently, I noticed many resubscribers running once a second. Looking at the code, it appears the kind of threadpool being used would just queue more and more up, but only run one at a time.
The subsequent resubscribers should exit immediately if resubscribe is no longer needed. Or the threadpool could be changed so we can't queue another while one is running.