Skip to content

infoschema: Add new columns for information_schema.tiflash_tables (#25678)#25709

Merged
ti-chi-bot merged 7 commits intopingcap:release-5.1from
ti-srebot:release-5.1-b0b01a9ef16e
Jul 21, 2021
Merged

infoschema: Add new columns for information_schema.tiflash_tables (#25678)#25709
ti-chi-bot merged 7 commits intopingcap:release-5.1from
ti-srebot:release-5.1-b0b01a9ef16e

Conversation

@ti-srebot
Copy link
Contributor

@ti-srebot ti-srebot commented Jun 23, 2021

cherry-pick #25678 to release-5.1
You can switch your code base to this Pull Request by using git-extras:

# In tidb repo:
git pr https://github.com/pingcap/tidb/pull/25709

After apply modifications, you can push your change to this PR via:

git push git@github.com:ti-srebot/tidb.git pr/25709:release-5.1-b0b01a9ef16e

Signed-off-by: JaySon-Huang tshent@qq.com

What problem does this PR solve?

Issue Number: related to pingcap/tiflash#2229

Problem Summary: Suspicious that some TiFlash tasks hold snapshot for a long time, prevent PageStorage from GCing old PageFiles. We add some information about the oldest snapshot in TiFlash system tables and want to access them by TiDB system table information_schema.tiflash_tables.

What is changed and how it works?

Add column STORAGE_{STABLE,DELTA,META}_OLDEST_SNAPSHOT_LIFETIME and STORAGE_{STABLE,DELTA,META}_OLDEST_SNAPSHOT_THREAD_ID for information_schema.tiflash_tables

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch: 4.0, 5.0, 5.1

Check List

Tests

  • Manual test (add detailed scripts or steps below)
    • Deploy a TiFlash contains that commit
    • Deploy a TiDB contains this commit
    • Check the query result of select * from information_schema.tiflash_tables limit 1

Side effects

  • Breaking backward compatibility

Release note

  • No release note

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot
Copy link
Contributor Author

@JaySon-Huang you're already a collaborator in bot's repo.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jun 23, 2021
@JaySon-Huang
Copy link
Contributor

/run_unit-test

@JaySon-Huang
Copy link
Contributor

/run-unit-test

Copy link
Contributor

@crazycs520 crazycs520 left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • crazycs520
  • tangenta

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

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

Details

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 15, 2021
@JaySon-Huang
Copy link
Contributor

/run-check_dev

@JaySon-Huang
Copy link
Contributor

@zhouqiang-cl PTAL

@JaySon-Huang
Copy link
Contributor

/merge

@ti-chi-bot
Copy link
Member

@JaySon-Huang: /merge is only allowed for the committers, you can assign this pull request to the committer in list by filling /assign @committer in the comment to help merge this pull request.

Details

In response to this:

/merge

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@zhouqiang-cl
Copy link
Contributor

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

DetailsCommit hash: 6a31d5b

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 21, 2021
@ti-chi-bot ti-chi-bot merged commit 37b2f1b into pingcap:release-5.1 Jul 21, 2021
@JaySon-Huang JaySon-Huang deleted the release-5.1-b0b01a9ef16e branch July 21, 2021 07:44
@wjhuang2016
Copy link
Member

/run-common-test

@zhouqiang-cl zhouqiang-cl added this to the v5.1.1 milestone Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-approved Cherry pick PR approved by release team. sig/sql-infra SIG: SQL Infra size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/5.1-cherry-pick

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants