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

backupccl: deflake TestDataDriven_restore_on_fail_or_cancel_retry #119342

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

stevendanna
Copy link
Collaborator

Full cluster restore drops the default DB. The test driver cache connections that may have originally connected to a database that is now dropped. This causes problems for queries issued after the full cluster restore.

Here, (1) I change the query we use to get job IDs to one that doesn't depend on doing any search path lookups and (2) reset all of our connections after the first restore we do.

See also #88913

Fixes #119079

Release note: None

Full cluster restore drops the default DB. The test driver cache
connections that may have originally connected to a database that is
now dropped. This causes problems for queries issued after the full
cluster restore.

Here, (1) I change the query we use to get job IDs to one that doesn't
depend on doing any search path lookups and (2) reset all of our
connections after the first restore we do.

See also cockroachdb#88913

Fixes cockroachdb#119079

Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@stevendanna stevendanna marked this pull request as ready for review February 18, 2024 00:18
@stevendanna stevendanna requested a review from a team as a code owner February 18, 2024 00:18
@stevendanna stevendanna requested review from dt and removed request for a team February 18, 2024 00:18
@stevendanna stevendanna added the backport-23.2.x Flags PRs that need to be backported to 23.2. label Feb 18, 2024
@stevendanna stevendanna requested a review from msbutler March 7, 2024 08:21
Copy link
Collaborator

@msbutler msbutler left a comment

Choose a reason for hiding this comment

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

Thanks!

@stevendanna
Copy link
Collaborator Author

bors r=msbutler

@craig
Copy link
Contributor

craig bot commented Mar 11, 2024

Build succeeded:

@craig craig bot merged commit 1741d97 into cockroachdb:master Mar 11, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.2.x Flags PRs that need to be backported to 23.2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ccl/backupccl: TestDataDriven_restore_on_fail_or_cancel_retry failed
3 participants