-
Notifications
You must be signed in to change notification settings - Fork 43
Description
couchbase-client-impl.zip
Hello
I currently work on the test of my application with the CouchbaseMock
The version of the couchabse mock is 1.5.25
The version of the Couchbase Java SDK is 3.0.5
When I setup the mock with 1 nodes all works not problem.
But with the same code when I setup 10 nodes with replica of 2 i hava a connection failure
com.couchbase.client.core.error.AmbiguousTimeoutException: InsertRequest {"cancelled":true,"completed":true,"coreId":"0x7215aed700000001","idempotent":false,"lastChannelId":"7215AED700000001/00000000F203E8CA","lastDispatchedFrom":"127.0.0.1:62173","lastDispatchedTo":"localhost:62143","reason":"TIMEOUT","requestId":10,"requestType":"InsertRequest","retried":7,"retryReasons":["KV_NOT_MY_VBUCKET"],"service":{"bucket":"e66cfb62-0e33-49e4-a0b5-ca8b78d5eb01","collection":"_default","documentId":"fa712e81-c831-4fb4-8103-fc744d3c50ae","opaque":"0x13","scope":"_default","syncDurability":{"present":false},"type":"kv"},"timeoutMs":2500,"timings":{"dispatchMicros":1383,"encodingMicros":1566,"totalMicros":2508019}}
at com.couchbase.client.java.AsyncUtils.block(AsyncUtils.java:51)
at com.couchbase.client.java.Collection.insert(Collection.java:381)
at com.amadeus.datastore.nosql.couchbase.impl.KeyValueKoTest.insertAndGet(KeyValueKoTest.java:52)
In attachement you can find a reproducer with the two scenario :
KeyValueKoTest that failed
KeyValueTest that success
couchbase-client-impl.zip
I made some other test with the same code on real couchbase cluster and it's works fine
Would it be possible to help me ?
Thanks