updateBucket error

Hi,

I am running on java client 2.01 and when I try to execute the updateBucket, always I am getting the following error:

Nov 25, 2014 5:37:48 AM com.couchbase.client.deps.com.lmax.disruptor.FatalExceptionHandler handleEventException
SEVERE: Exception processing: 17 com.couchbase.client.core.RequestEvent@7cbecd86
java.lang.IllegalStateException: Node not found for requestcom.couchbase.client.core.message.kv.GetBucketConfigRequest@160ee454
at com.couchbase.client.core.node.locate.KeyValueLocator.locate(KeyValueLocator.java:63)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:148)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:68)
at com.couchbase.client.deps.com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)

Exception in thread “cb-core-3-2” java.lang.RuntimeException: java.lang.IllegalStateException: Node not found for requestcom.couchbase.client.core.message.kv.GetBucketConfigRequest@160ee454
at com.couchbase.client.deps.com.lmax.disruptor.FatalExceptionHandler.handleEventException(FatalExceptionHandler.java:45)
at com.couchbase.client.deps.com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:147)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at com.couchbase.client.deps.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Node not found for requestcom.couchbase.client.core.message.kv.GetBucketConfigRequest@160ee454
at com.couchbase.client.core.node.locate.KeyValueLocator.locate(KeyValueLocator.java:63)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:148)
at com.couchbase.client.core.RequestHandler.onEvent(RequestHandler.java:68)
at com.couchbase.client.deps.com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
… 4 more

Do you know, how to execute the updateBucket, without to get error ?

Interesting, can you please share the code you’re using and ideally logging with FINEST level enabled?

Please, raise an issue here right away and we can take it from there http://www.couchbase.com/issues/browse/JCBC

I have created the issue http://www.couchbase.com/issues/browse/JCBC-635.

The issue is the following : When you retrieve a bucket settings from getBucket, on the BucketSettings quota, it returns the total bucket size rather than the quota per node. So, if you update the bucket settings with updateBucket method, the quota will have the total value from all nodes and an error will happen.

See logs

{“errors”:{“ramQ|
|00000010| 75 6f 74 61 4d 42 22 3a 22 52 41 4d 20 71 75 6f |uotaMB”:“RAM quo|
|00000020| 74 61 20 73 70 65 63 69 66 69 65 64 20 69 73 20 |ta specified is |
|00000030| 74 6f 6f 20 6c 61 72 67 65 20 74 6f 20 62 65 20 |too large to be |
|00000040| 70 72 6f 76 69 73 69 6f 6e 65 64 20 69 6e 74 6f |provisioned into|
|00000050| 20 74 68 69 73 20 63 6c 75 73 74 65 72 2e 22 7d | this cluster.”}

@avacondios the log you provided in the JCBC does not contain the original exception? Or are these different issues?

I commented on the ticket, I don’t see anything wrong with the get bucket info, but then again the original exception your reported is not in there which I’d like to follow up with.