Collection Map Refresh Failed Event error

Hi,

Need some help, I am new to Couchbase, I am getting the below error while trying to connect and get data from Java API.

{"@timeStamp":"2022-05-31T16:26:46.947" ,"thread":cb-events, "logger":com.couchbase.config,
                        "message":[com.couchbase.config][CollectionMapRefreshFailedEvent][2505ms] Collection Map refresh (CollectionIdentifier{bucket='MyBucketName', scope=Optional[_default], collection=Optional[myCollectionName], isDefault=false}) failed: FAILED {"coreId":"0x67aedb0100000002"} }
com.couchbase.client.core.error.UnambiguousTimeoutException: GetCollectionIdRequest, Reason: TIMEOUT {"cancelled":true,"completed":true,"coreId":"0x67aedb0100000002","idempotent":true,"reason":"TIMEOUT","requestId":5,"requestType":"GetCollectionIdRequest","retried":14,"retryReasons":["BUCKET_OPEN_IN_PROGRESS"],"service":{"bucket":"MyBucketName","collection":"myCollectionName","opaque":"0x3","scope":"_default","type":"kv","vbucket":0},"timeoutMs":2500}

Hi Brivi,

Welcome!

It looks like the SDK is failing to get information about the collection myCollectionName in the default scope. I would double-check that this collection exists, and make sure the user has permission to view this collection.

If that doesn’t solve the problem, you can help us diagnose the issue by telling us the versions of Couchbase Server and the Couchbase Java SDK you’re using, and showing the code you’ve written to connect to Couchbase, as well as the code that’s failing. It would also help to see the full log output of your program, if possible.

Thanks,
David

This is still happening.

server 7.2.2-community & java sdk 3.4.11

Below is the error I am getting.

23-10-19 17:34:38.132 [cb-events]  WARN  com.couchbase.config - [com.couchbase.config][CollectionMapRefreshFailedEvent][2507ms] Collection Map refresh (CollectionIdentifier{bucket='main', scope=Optional[_default], collection=Optional[account], isDefault=false}) failed: FAILED {"coreId":"0x24edf36100000001"}
com.couchbase.client.core.error.UnambiguousTimeoutException: GetCollectionIdRequest, Reason: TIMEOUT {"cancelled":true,"completed":true,"coreId":"0x24edf36100000001","idempotent":true,"reason":"TIMEOUT","requestId":8,"requestType":"GetCollectionIdRequest","retried":14,"retryReasons":["NODE_NOT_AVAILABLE"],"service":{"bucket":"main","collection":"account","opaque":"0x12","scope":"_default","type":"kv","vbucket":0},"timeoutMs":2500}
	at com.couchbase.client.core.msg.BaseRequest.cancel(BaseRequest.java:184)
	at com.couchbase.client.core.msg.Request.cancel(Request.java:71)
	at com.couchbase.client.core.Timer.lambda$register$2(Timer.java:172)
	at com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$HashedWheelTimeout.run(HashedWheelTimer.java:715)
	at com.couchbase.client.core.deps.io.netty.util.concurrent.ImmediateExecutor.execute(ImmediateExecutor.java:34)
	at com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:703)
	at com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:790)
	at com.couchbase.client.core.deps.io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:503)
	at com.couchbase.client.core.deps.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:829)

This happens when the collection is created using the SDK and the app tries to use the collection after that. On subsequent runs, it works just fine.

Try using bucket.waitUntilReady()