Skip to content

changefeedccl: deflake TestChangefeedSchemaChangeBackfillCheckpoint#108379

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
jayshrivastava:deflake-TestChangefeedSchemaChangeBackfillCheckpoint-2
Aug 8, 2023
Merged

changefeedccl: deflake TestChangefeedSchemaChangeBackfillCheckpoint#108379
craig[bot] merged 1 commit intocockroachdb:masterfrom
jayshrivastava:deflake-TestChangefeedSchemaChangeBackfillCheckpoint-2

Conversation

@jayshrivastava
Copy link
Copy Markdown
Contributor

Previously, the test TestChangefeedSchemaChangeBackfillCheckpoint would fail because it would read a table span too early. A schema change using the delcarative schema changer will update a table span to point to a new set of ranges. Previously, this test would use the span from before the schema change, which is incorrect. This change makes it use the span from after the schema change.

I stress tested this 30k times under the new schema changer and 10k times under the legacy schema changer to ensure the test is not flaky anymore.

Fixes: #108084
Release note: None
Epic: None

Previously, the test `TestChangefeedSchemaChangeBackfillCheckpoint` would fail
because it would read a table span too early. A schema change using the delcarative
schema changer will update a table span to point to a new set of ranges. Previously,
this test would use the span from before the schema change, which is incorrect.
This change makes it use the span from after the schema change.

I stress tested this 30k times under the new schema changer and 10k times
under the legacy schema changer to ensure the test is not flaky anymore.

Fixes: cockroachdb#108084
Release note: None
Epic: None
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@jayshrivastava jayshrivastava requested a review from samiskin August 8, 2023 19:53
@jayshrivastava jayshrivastava marked this pull request as ready for review August 8, 2023 19:53
@jayshrivastava jayshrivastava requested a review from a team as a code owner August 8, 2023 19:53
@jayshrivastava
Copy link
Copy Markdown
Contributor Author

bors r=miretskiy

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 8, 2023

Build succeeded:

@craig craig bot merged commit 69bc4c6 into cockroachdb:master Aug 8, 2023
@jayshrivastava jayshrivastava deleted the deflake-TestChangefeedSchemaChangeBackfillCheckpoint-2 branch August 9, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ccl/changefeedccl: TestChangefeedSchemaChangeBackfillCheckpoint failed

3 participants