Skip to content

changefeedccl: deflake TestChangefeedSchemaChangeNoBackfill#169986

Open
KeithCh wants to merge 1 commit intocockroachdb:masterfrom
KeithCh:deflake-TestChangefeedSchemaChangeNoBackfill
Open

changefeedccl: deflake TestChangefeedSchemaChangeNoBackfill#169986
KeithCh wants to merge 1 commit intocockroachdb:masterfrom
KeithCh:deflake-TestChangefeedSchemaChangeNoBackfill

Conversation

@KeithCh
Copy link
Copy Markdown
Contributor

@KeithCh KeithCh commented May 8, 2026

The test has many subtests, each of which involves a schema change.
Since the default lease duration is 5 minutes, each subtest can take up
to 5 minutes or more to complete due to waiting for the changefeed's
lease to expire before the schema change is applied. This means that the
total duration can sometimes exceed the 15 minute timeout. Lowering the
lease duration will allow the schema change to complete much faster.

Before:
//pkg/ccl/changefeedccl:changefeedccl_test PASSED in 1191.1s
Stats over 1000 runs: max = 1191.1s, min = 6.8s, avg = 34.6s, dev = 78.7s

After:
//pkg/ccl/changefeedccl:changefeedccl_test PASSED in 211.9s
Stats over 1000 runs: max = 211.9s, min = 7.0s, avg = 27.5s, dev = 30.6s

Release note: None
Fixes: #169932

The test has many subtests, each of which involves a schema change.
Since the default lease duration is 5 minutes, each subtest can take up
to 5 minutes or more to complete, and the total duration can easily
exceed the 15 minute timeout. Lowering the lease duration will allow
the worst case subtest to complete much faster.

Before:
//pkg/ccl/changefeedccl:changefeedccl_test                               PASSED in 1191.1s
  Stats over 1000 runs: max = 1191.1s, min = 6.8s, avg = 34.6s, dev = 78.7s

After:
//pkg/ccl/changefeedccl:changefeedccl_test                               PASSED in 211.9s
  Stats over 1000 runs: max = 211.9s, min = 7.0s, avg = 27.5s, dev = 30.6s

Release note: None
Fixes: cockroachdb#169932
@KeithCh KeithCh requested a review from a team as a code owner May 8, 2026 18:32
@KeithCh KeithCh requested review from DarrylWong and removed request for a team May 8, 2026 18:32
@trunk-io
Copy link
Copy Markdown
Contributor

trunk-io Bot commented May 8, 2026

Merging to master in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@DarrylWong DarrylWong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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: TestChangefeedSchemaChangeNoBackfill failed

3 participants