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][#18934] CDCSDK: Fix failing TestReleaseResourcesOnUnp…
…olledSplitTablets test Summary: Original commit: 9c370a0 / D31702 In https://phorge.dev.yugabyte.com/D30918, we introduced support for rolling back a failed CDC stream. As part of the rollback revision, we enabled the UpdatePeersAndMetrics thread earlier in the flow (SetCDCServiceEnabled()). The test TestReleaseResourcesOnUnpolledSplitTablets started intermittently failing. The failure happens because the UpdatePeersAndMetrics thread was caching the stream metadata without the stream creation time. The fix is to make the UpdatePeersAndMetrics thread refresh the cached stream metadata if the state is in Initialized state. Jira: DB-7785 Test Plan: Jenkins: test regex: .*CDCSDK.* ./yb_build.sh --cxx-test cdcsdk_consistent_snapshot-test --gtest_filter CDCSDKConsistentSnapshotTest.TestReleaseResourcesOnUnpolledSplitTablets -n 5 Reviewers: asrinivasan, skumar Reviewed By: asrinivasan Subscribers: ycdcxcluster Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D31806
- Loading branch information