Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to connect to a mock with multiple nodes #63

Open
vdoleans opened this issue Aug 12, 2020 · 1 comment
Open

Impossible to connect to a mock with multiple nodes #63

vdoleans opened this issue Aug 12, 2020 · 1 comment

Comments

@vdoleans
Copy link

vdoleans commented Aug 12, 2020

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

@krugster
Copy link

Related to #47 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants