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

democluster: fix a flake in TestTransientClusterMultitenant #106679

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

knz
Copy link
Contributor

@knz knz commented Jul 12, 2023

Fixes #96162.
Epic: CRDB-18499

Prior to this patch, the test was passing a cancel-on-quiesce context to the Start call. This was invalid, because this context is then passed recursively to server tasks that need to continue to run during graceful shutdown.

This patch ensures that the Start call uses a regular context instead.

The patch also makes a few other improvements to the test.

(I could readily repro the flake under stress within 100-200 iterations before this patch. After this patch, it doesn't repro after 500 iterations.)

Prior to this patch, the test was passing a cancel-on-quiesce context
to the `Start` call. This was invalid, because this context is then
passed recursively to server tasks that need to continue to run during
graceful shutdown.

This patch ensures that the Start call uses a regular context instead.

The patch also makes a few other improvements to the test.

Release note: None
@knz knz requested review from a team as code owners July 12, 2023 13:10
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz knz added A-multitenancy Related to multi-tenancy backport-22.2.x backport-23.1.x Flags PRs that need to be backported to 23.1 labels Jul 12, 2023
@knz knz requested review from stevendanna, rafiss and yuzefovich July 12, 2023 13:12
require.NoError(t, conn.Exec(ctx, "CREATE TABLE a (a int PRIMARY KEY)"))

log.Infof(ctx, "test succeeded")
t.Log("test succeeded")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In case it shows up during review: this logging helps troubleshoot when looking at the log output.

@knz
Copy link
Contributor Author

knz commented Jul 12, 2023

TFYR!

bors r=herkolategan

@craig
Copy link
Contributor

craig bot commented Jul 12, 2023

Build succeeded:

@blathers-crl
Copy link

blathers-crl bot commented Jul 12, 2023

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating merge commit from fea98e4 to blathers/backport-release-22.2-106679: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 22.2.x failed. See errors above.


error setting reviewers, but backport branch blathers/backport-release-23.1-106679 is ready: POST https://api.github.com/repos/cockroachdb/cockroach/pulls/106690/requested_reviewers: 422 Reviews may only be requested from collaborators. One or more of the teams you specified is not a collaborator of the cockroachdb/cockroach repository. []

Backport to branch 23.1.x failed. See errors above.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-multitenancy Related to multi-tenancy backport-23.1.x Flags PRs that need to be backported to 23.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli/democluster: TestTransientClusterMultitenant failed
3 participants