Hi,

I have Couchbase cluster of 4 nodes (2.5), using Java client SDK (1.4.4), 
Java 7.

My client application on start up successfully connected to all 4 nodes.

*My client code:*

CouchbaseConnectionFactoryBuilder cbfb = new 
CouchbaseConnectionFactoryBuilder();
CouchbaseClient couchbaseClient= null;

List<URI> uris = new ArrayList<URI>();
uris.add(URI.create("http://node7:8091";));
uris.add(URI.create("http://node8:8091";));
uris.add(URI.create("http://node9:8091";));
uris.add(URI.create("http://node10:8091";));

CouchbaseConnectionFactory cbcf = cbfb.buildCouchbaseConnection(uris, 
"bucket1", "");
couchbaseClient = new CouchbaseClient(cbcf);

while(true) {
try {
Thread.sleep(5000);
o = couchbaseClient.get("04849b37-f1b0-4772-960a-dd5fd13d8ea8");
}
catch(Exception e) {
System.out.println("exception:"+getStackTrace(e)); 
}
}

I stop all nodes for 10 minutes and start them all.

*On client side I see exception but on Couchbase web console I see that all 
nodes is up*


Caused by: net.spy.memcached.internal.CheckedOperationTimeoutException: 
Timed out waiting for operation - failing node: node9/XXX.XXX.XXX.189:11210
at net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:167)
at net.spy.memcached.internal.GetFuture.get(GetFuture.java:69)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1230)
... 2 more

exception:net.spy.memcached.OperationTimeoutException: Timeout waiting for 
value: waited 2,500 ms. Node status: Connection Status 
{node9/XXX.XXX.XXX.189:11210 active: true, authed: true, last read: 53,022 
ms ago node7/XXX.XXX.XXX.187:11210 active: false, authed: false, last read: 
67,540 ms ago node10/XXX.XXX.XXX.190:11210 active: true, authed: true, last 
read: 62,520 ms ago node8/XX.XXX.XXX.188:11210 active: true, authed: false, 
last read: 62,521 ms ago }
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1240)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1257)
at Main.main(Main.java:76)
Caused by: net.spy.memcached.internal.CheckedOperationTimeoutException: 
Timed out waiting for operation - failing node: node9/XXX.XXX.XXX.XXX:11210
at net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:167)
at net.spy.memcached.internal.GetFuture.get(GetFuture.java:69)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1230)
... 2 more


After client application restart look up by key runs properly without any 
exception.
I expect full connection recovery on client side after cluster 
failure/restart.

Thanks,

David.


-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to