Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roachtest: add a new cdc/kafka-chaos-single-row test #124313

Merged
merged 1 commit into from
May 20, 2024

Conversation

andyyang890
Copy link
Collaborator

This patch adds a new cdc/kafka-chaos-single-row roachtest, which
will serve as a regression test for the Kafka restarts bug. It is
currently configured to only be able to run manually since we have not
yet fixed the bug.

Informs #122372

Release note: None

@andyyang890 andyyang890 requested review from asg0451, rharding6373 and a team May 17, 2024 00:06
@andyyang890 andyyang890 requested review from a team as code owners May 17, 2024 00:06
@andyyang890 andyyang890 requested review from nameisbhaskar and vidit-bhat and removed request for a team May 17, 2024 00:06
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@andyyang890
Copy link
Collaborator Author

This PR depends on #124195

Copy link
Collaborator

@rharding6373 rharding6373 left a comment

Choose a reason for hiding this comment

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

:lgtm: Nice test!

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @andyyang890, @asg0451, @nameisbhaskar, and @vidit-bhat)


pkg/cmd/roachtest/tests/cdc.go line 1578 at r5 (raw file):

		Leases:           registry.MetamorphicLeases,
		CompatibleClouds: registry.AllExceptAWS,
		// TODO(yang): Add this to the nightly test suite after we fix the Kafka restart bug.

nit: s/yang/#122372


pkg/cmd/roachtest/tests/cdc.go line 1626 at r5 (raw file):

				stmt := fmt.Sprintf(`UPDATE t SET x = %d WHERE id = 1;`, i)
				if i == 0 {
					stmt = fmt.Sprintf(`INSERT INTO t VALUES (1, %d);`, i)

Consider lifting the insert statement and its execution out of the loop.

@rharding6373
Copy link
Collaborator

Please wait for @asg0451 to have a chance to review before merging. Thanks!

Copy link
Collaborator Author

@andyyang890 andyyang890 left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @asg0451, @nameisbhaskar, @rharding6373, and @vidit-bhat)


pkg/cmd/roachtest/tests/cdc.go line 1578 at r5 (raw file):

Previously, rharding6373 (Rachael Harding) wrote…

nit: s/yang/#122372

Done.


pkg/cmd/roachtest/tests/cdc.go line 1626 at r5 (raw file):

Previously, rharding6373 (Rachael Harding) wrote…

Consider lifting the insert statement and its execution out of the loop.

Done.

This patch adds a new `cdc/kafka-chaos-single-row` roachtest, which
will serve as a regression test for the Kafka restarts bug. It is
currently configured to only be able to run manually since we have not
yet fixed the bug.

Release note: None
Copy link
Contributor

@asg0451 asg0451 left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 4 files at r6, 1 of 1 files at r7, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @nameisbhaskar, @rharding6373, and @vidit-bhat)

@andyyang890
Copy link
Collaborator Author

TFTRs!

bors r=rharding6373,asg0451

@craig craig bot merged commit d9dbc2e into cockroachdb:master May 20, 2024
22 checks passed
@andyyang890 andyyang890 deleted the kafka-restarts-test branch May 20, 2024 21:51
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.

None yet

4 participants