forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roachtest/tests: introduce metamorphic testing to cdc
Prior to this commit, roachtest/cdc relies solely on periodic checks of changefeed status and latency. This patch takes the first step to introduce a metamorphic testing framework. Given the absence of a way to evaluate the output file correctness yet, this new approach involves running two changefeeds with different configurations, retrieving their roachtests’ output files, and comparing their data outputs. Due to potential duplicates in the changefeed output, the test follows these steps” 1. create two empty tables with the same scheme as the workload tables 2. convert parquet data to datums 3. execute `UPSERT` statements on the tables with the datums to eliminate duplicates 4. confirm the identical content of the two tables by checking their fingerprints Limitations with this approach include: - This solution only works for parquet files as of now. (A round trip conversion is guaranteed between parquet data format and datums. Other data formats are more complicated.) - INSERT is the only operation involved. - Due to the large file size, the test randomly selects one target table for changefeeds. - Currently, the changefeeds use the same configurations. However, we plan to change this soon following a discussion to determine the specfic configurations that will be randomized. Part of: cockroachdb#111066 Release note: None
- Loading branch information
Showing
8 changed files
with
438 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.