[JCBC-53] incorrect connection type being served by ConnectionFactory Created: 21/May/12  Updated: 30/Jul/12  Resolved: 30/Jul/12

Status: Closed
Project: Couchbase Java Client
Component/s: None
Affects Version/s: 1.0, 1.0.1, 1.0.2
Fix Version/s: 1.0.3
Security Level: Public

Type: Bug Priority: Major
Reporter: Matt Ingenthron Assignee: Matt Ingenthron
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

It's been found that the incorrect connection type is being served up for memcached bucket types. The CouchbaseConnection is being created by the ConnectionFactory not the MemcachedConnection.

As a result, when the cluster is in a condition where the node responsible for a given operation is down, the alternate node would be correctly requested but upon the node map being rebuilt, no operations are sent back to that node and the connection is therefore never reestablished.

Example Steps:
1. Start the loadgen which will store keys in the cluster in "default" memcached bucket. The loadgen iterates through the keys to verify it is able to retrieve them.

2. After a min, in UI console, "failover" one node and then rebalance

3. After a min, in UI console, add the node back to the cluster using "Add server" and click on rebalance again.

4. Verify the keys are getting stored on all nodes in cluster

It's at step 4 things currently fail.

Comment by Matt Ingenthron [ 30/Jul/12 ]
Generated at Thu Sep 18 17:27:27 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.