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

ddl: Support FLASHBACK DATABASE (release-7.5) (#8424) #8477

Merged

Conversation

ti-chi-bot
Copy link
Member

This is an automated cherry-pick of #8424

What problem does this PR solve?

Issue Number: close #8450

Problem Summary:

tidb support FLASHBACK DATABASE DBName [TO newDBName] since v6.4.0 https://docs.pingcap.com/tidb/stable/sql-statement-flashback-database

After executing FLASHBACK DATABASE ... TO ..., the storage instances in TiFlash are not recovered as non tombstone. After the gc safepoint advanced, the storage instances will be physically drop.

What is changed and how it works?

Recover all the tables on the database when FLASHBACK DATABASE is executed.

Note that the implementation is different from that on release-7.1, release-6.5

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Fix the issue that `FLASHBACK DATABASE` is not applied to TiFlash replica data

@ti-chi-bot ti-chi-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. type/cherry-pick-for-release-7.5 This PR is cherry-picked to release-7.5 from a source PR. labels Dec 7, 2023
@ti-chi-bot ti-chi-bot mentioned this pull request Dec 7, 2023
12 tasks
@ti-chi-bot ti-chi-bot added the cherry-pick-approved Cherry pick PR approved by release team. label Dec 7, 2023
@JaySon-Huang JaySon-Huang changed the title ddl: Support FLASHBACK DATABASE (#8424) ddl: Support FLASHBACK DATABASE (release-7.5) (#8424) Dec 7, 2023
@JaySon-Huang JaySon-Huang force-pushed the cherry-pick-8424-to-release-7.5 branch from 944c6b9 to 35c2e8b Compare December 7, 2023 05:22
@JaySon-Huang
Copy link
Contributor

/run-all-tests

@JaySon-Huang
Copy link
Contributor

https://ci.pingcap.net/blue/organizations/jenkins/tiflash-ghpr-unit-tests/detail/tiflash-ghpr-unit-tests/12104/pipeline

[2023-12-07T06:01:35.713Z] FAILED TESTS (1/2372):
[2023-12-07T06:01:35.713Z]    92377 ms: /tiflash/gtests_dbms ComputeServerRunner.multipleQuery

@JaySon-Huang
Copy link
Contributor

/run-unit-test

@JaySon-Huang
Copy link
Contributor

https://ci.pingcap.net/blue/organizations/jenkins/tiflash-ghpr-unit-tests/detail/tiflash-ghpr-unit-tests/12108/pipeline
same failure caused by ComputeServerRunner.multipleQuery again

[2023-12-07T07:04:04.404Z] FAILED TESTS (1/2372):
[2023-12-07T07:04:04.404Z]   106825 ms: /tiflash/gtests_dbms ComputeServerRunner.multipleQuery

@JaySon-Huang
Copy link
Contributor

/run-unit-test

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Dec 7, 2023
@ti-chi-bot ti-chi-bot bot added the lgtm label Dec 7, 2023
Copy link
Contributor

ti-chi-bot bot commented Dec 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JaySon-Huang, Lloyd-Pottiger

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [JaySon-Huang,Lloyd-Pottiger]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Dec 7, 2023
Copy link
Contributor

ti-chi-bot bot commented Dec 7, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-12-07 09:41:15.058271299 +0000 UTC m=+1693303.723497495: ☑️ agreed by JaySon-Huang.
  • 2023-12-07 09:54:34.562826412 +0000 UTC m=+1694103.228052606: ☑️ agreed by Lloyd-Pottiger.

@ti-chi-bot ti-chi-bot bot merged commit 91ec283 into pingcap:release-7.5 Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved cherry-pick-approved Cherry pick PR approved by release team. lgtm release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. type/cherry-pick-for-release-7.5 This PR is cherry-picked to release-7.5 from a source PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants