default collection is not encoded in case of mixed-version cluster

Description

See linked https://couchbasecloud.atlassian.net/browse/CBSE-14831#icft=CBSE-14831Can't find link for additional details, but here are the reproduction steps:

  1. setup two node cluster with KV service with 6.6 version

  2. add one 7.1 node

  3. rebalance

  4. bootstrap libcouchbase using 7.1 node

  5. libcouchbase will get socket configured for collections, because kv engine from 7.1 node will ack collection support

  6. libcouchbase then receive configuration, and sees that the config does not have "collections" capability and disables collections support for whole lcb_INSTANCE

  7. send GET command, and libcouchbase will not add zero prefix for default collection

  8. kv engine tries to interpret first byte of the key as a collection index, and returns COLLECTION_NOT_FOUND

  9. libcouchbase silently retries expecting that this is just cold collection, that will be accessible in a moment

  10. application gets timeout error

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

CB robot March 28, 2024 at 5:46 AM

Build couchbase-server-7.2.5-7575 contains libcouchbase commit ad04729 with commit message:
https://couchbasecloud.atlassian.net/browse/CCBC-1607#icft=CCBC-1607: fix collection id encoding in mixed cluster

CB robot December 19, 2023 at 1:39 AM

Build couchbase-server-7.1.6-3969 contains libcouchbase commit ad04729 with commit message:
https://couchbasecloud.atlassian.net/browse/CCBC-1607#icft=CCBC-1607: fix collection id encoding in mixed cluster

CB robot August 31, 2023 at 8:44 AM

Build capella-analytics-1.0.0-1006 contains libcouchbase commit ad04729 with commit message:
https://couchbasecloud.atlassian.net/browse/CCBC-1607#icft=CCBC-1607: fix collection id encoding in mixed cluster

CB robot August 31, 2023 at 7:35 AM

Build couchbase-server-7.6.0-1438 contains libcouchbase commit ad04729 with commit message:
https://couchbasecloud.atlassian.net/browse/CCBC-1607#icft=CCBC-1607: fix collection id encoding in mixed cluster

CB robot August 23, 2023 at 3:01 PM

Build couchbase-server-8.0.0-1384 contains libcouchbase commit ad04729 with commit message:
https://couchbasecloud.atlassian.net/browse/CCBC-1607#icft=CCBC-1607: fix collection id encoding in mixed cluster

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Fix versions

Sprint

Story Points

Reporter

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created August 3, 2023 at 4:53 PM
Updated March 28, 2024 at 5:46 AM
Resolved August 12, 2023 at 5:28 AM
Instabug