[BP to 7.2.5] - Track first snapshot optimisation per keyspace in mutation stream reader

Description

Currently, mutation stream reader tracks the enablement of first snapshot optimisation per stream. This can lead to an issue if first snap optimisation can be enabled for one keyspace and should not be enabled for other keyspace  (See linked customer ticket). 

If the first keyspace that starts the stream enables the first snapshot optimisation, it will be applicable for all keyspaces which follow. This is incorrect and can lead to duplicate rows in the index.

Components

Affects versions

Fix versions

Labels

Environment

None

Link to Log File, atop/blg, CBCollectInfo, Core dump

None

Release Notes Description

None

Attachments

1
  • 18 Apr 2024, 06:16 AM

Activity

Show:

Hemant Rajput October 21, 2024 at 5:34 AM

Validated the fix on 7.2.2-6405.

"b10:idx2:items_count": 1000, "b10:idx2:key_size_distribution": { "(0-64)": 1000, "(65-256)": 0, "(257-1024)": 0, "(1025-4096)": 0, "(4097-102400)": 0, "(102401-max)": 0 }

CB robot October 18, 2024 at 6:44 AM

Build couchbase-server-7.2.2-6402 contains indexing commit 98f3a97 with commit message:
https://couchbasecloud.atlassian.net/browse/MB-61435#icft=MB-61435 Track markFirstSnap per keyspace in stream reader

CB robot October 18, 2024 at 6:44 AM

Build couchbase-server-7.2.2-6402 contains indexing commit 56631cc with commit message:
https://couchbasecloud.atlassian.net/browse/MB-61435#icft=MB-61435 Disable first snap optimization for MAINT_STREAM

Beth Favini June 3, 2024 at 5:46 PM

We are preparing the 7.2.5 release notes. If this fix is customer-facing, please add the releasenote label to the issue so it will be picked up by our filter.

Hemant Rajput April 18, 2024 at 6:16 AM

Validated the fix on 7.2.4-7081 build.

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

Details

Assignee

Reporter

Is this a Regression?

Unknown

Gerrit Reviews

MB-61435 Track markFirstSnap per keyspace repo:indexing branch:7.2.2
MB-61435 Disable first snap optimization repo:indexing branch:7.2.2

Triage

Untriaged

Due date

Story Points

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created April 5, 2024 at 7:38 PM
Updated October 21, 2024 at 8:02 AM
Resolved April 12, 2024 at 5:39 AM
Instabug