Added new test snapshotShouldBeCompletedOnParentIfSplitHappenedAfterStreamCreation to test the following scenario between tablet split & consistent snapshot:
Insert 10 rows for table t1.
Consistent snapshot Stream created
Split tablet
Insert 5 more rows
Deploy connector (GetTabletListToPollForCDC should receive only parent tablet)
Assert 10 rows received in snapshot & 5 rows in streaming
Following things are verified:
Snapshot takes place on the parent tablet
Any DMLs performed after the split are not part of snapshot records.
Testing
Added new test
snapshotShouldBeCompletedOnParentIfSplitHappenedAfterStreamCreation
to test the following scenario between tablet split & consistent snapshot:Following things are verified: