Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…DC snapshot mode and for before image type Summary: "Original commit: 3c7146e/D21213 876753e/D21246" During code analysis, we observed that compaction is by default restricted for the active CDC stream using the //cdc_sdk_safe_time//, which really does not require all the features of the CDC and It will unnecessarily consume disk space as well as impact the performance. So in this diff, we will only restrict the compaction:- 1. During snapshot operation. 2. when Before image is enabled for the stream. We have added a few unit test cases around it. [#15063]CDCSDK: Alter table support is broken with packed row During the unit test case failure analysis we observed that for packed row decoding CDC need the corresponding schema and schema version in the //SchemaPackingStorage// object so that in the later stage it can decode the packed row in //PopulatePackedRows// method. but in the method //PopulateCDCSDKWriteRecord//, it is always taking the latest schema version, causing this issue. to handle this we will then pass the corresponding schema version, that CDC is collected from the system catalog table to //PopulateCDCSDKWriteRecord// method Test Plan: ./yb_build.sh --cxx-test integration-tests_cdcsdk_ysql-test --gtest_filter CDCSDKYsqlTest.TestCompactionWithSnapshotAndNoBeforeImage ./yb_build.sh --cxx-test integration-tests_cdcsdk_ysql-test --gtest_filter CDCSDKYsqlTest.TestExpiredStreamWithCompaction ./yb_build.sh --cxx-test integration-tests_cdcsdk_ysql-test --gtest_filter CDCSDKYsqlTest.TestCompactionWithoutBeforeImage Running all the alter table unit testcases with FLAGS_ysql_enable_packed_row as true Reviewers: srangavajjula, skumar, abharadwaj Reviewed By: abharadwaj Subscribers: ycdcxcluster Differential Revision: https://phabricator.dev.yugabyte.com/D21275
- Loading branch information