Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACKPORT 2.20][#22383] CDCSDK: Fix Tablet incorrectly declared not o…
…f interest for stream before configured interval is reached Summary: **Backport Description** The merge was clean **Original Description** Original commit: ebe498f / D35037 This is related to the CDC Consistent Snapshot feature (GH #18508). Lack of interest in a tablet for a stream is inferred if the tablet has not been polled even once since stream creation for a configurable time limit. This time limit is defined by the gflag "cdcsdk_tablet_not_of_interest_timeout_secs". The default value of this flag is 4 hours. This support was introduced in https://phorge.dev.yugabyte.com/D30907. The flag value is converted to microseconds before being used to determine if the tablet has not been polled by the stream for too long. However, this converted value was being incorrectly stored in a int32 variable. An int64 is required to store even the default value of the flag in microseconds. This was causing the problem. Jira: DB-11282 Test Plan: Jenkins: test regex: .*CDC.* Reviewers: stiwary, skumar Reviewed By: stiwary Subscribers: ycdcxcluster Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D35082
- Loading branch information