Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-beta-2
-
Component/s: couchbase-bucket
-
Security Level: Public
-
Labels:None
Description
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.couchbase.sdkd;
import com.couchbase.client.CouchbaseClient;
import java.net.URI;
import java.util.LinkedList;
import java.util.List;
import net.spy.memcached.CASValue;
import net.spy.memcached.internal.OperationFuture;
/**
*
* @author mnunberg
*/
public class GatBug {
public static void main(String[] args)
throws Exception {
URI url = new URI("http://localhost:8091/pools");
List<URI> ul = new LinkedList<URI>();
ul.add(url);
CouchbaseClient cli = new CouchbaseClient(ul, "default", "");
OperationFuture gop = cli.asyncGetAndTouch("non-existent-key", 5);
gop.get();
System.err.println(gop.getStatus());
}
}
/** output **/
2012-09-12 16:28:28.855 INFO com.couchbase.client.CouchbaseConnection: Added {QA sa=/10.0.0.99:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2012-09-12 16:28:28.857 INFO com.couchbase.client.CouchbaseConnection: Added {QA sa=/10.0.0.20:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2012-09-12 16:28:29.166 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@2cb0ce8f
2012-09-12 16:28:29.167 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@bc92535
{OperationStatus success=false: }
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.couchbase.sdkd;
import com.couchbase.client.CouchbaseClient;
import java.net.URI;
import java.util.LinkedList;
import java.util.List;
import net.spy.memcached.CASValue;
import net.spy.memcached.internal.OperationFuture;
/**
*
* @author mnunberg
*/
public class GatBug {
public static void main(String[] args)
throws Exception {
URI url = new URI("http://localhost:8091/pools");
List<URI> ul = new LinkedList<URI>();
ul.add(url);
CouchbaseClient cli = new CouchbaseClient(ul, "default", "");
OperationFuture gop = cli.asyncGetAndTouch("non-existent-key", 5);
gop.get();
System.err.println(gop.getStatus());
}
}
/** output **/
2012-09-12 16:28:28.855 INFO com.couchbase.client.CouchbaseConnection: Added {QA sa=/10.0.0.99:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2012-09-12 16:28:28.857 INFO com.couchbase.client.CouchbaseConnection: Added {QA sa=/10.0.0.20:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2012-09-12 16:28:29.166 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@2cb0ce8f
2012-09-12 16:28:29.167 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@bc92535
{OperationStatus success=false: }
Activity
- All
- Comments
- Work Log
- History
- Activity
- Gerrit Reviews