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

Add docs for sysvar cache #5563

Merged
merged 5 commits into from
Jun 9, 2021

Conversation

morgo
Copy link
Contributor

@morgo morgo commented May 5, 2021

What is changed, added or deleted? (Required)

This is the docs for pingcap/tidb#24359 which has not merged yet. It more accurately reflects the future-state of sysvars.

There is another PR for GA releases which describes how it previously worked better: #5562

It needs a "followup" to insert the version the change is effective from.

Which TiDB version(s) do your changes apply to? (Required)

  • master (the latest development version)
  • v5.1 (TiDB 5.1 versions) add "since v5.1" back
  • v5.0 (TiDB 5.0 versions)
  • v4.0 (TiDB 4.0 versions)
  • v3.1 (TiDB 3.1 versions)
  • v3.0 (TiDB 3.0 versions)
  • v2.1 (TiDB 2.1 versions)

What is the related PR or file link(s)?

  • This PR is translated from:
  • Other reference link(s):

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

@ti-chi-bot ti-chi-bot requested a review from TomShawn May 5, 2021 19:34
@ti-chi-bot ti-chi-bot added missing-translation-status This PR does not have translation status info. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 5, 2021
@TomShawn
Copy link
Contributor

TomShawn commented May 6, 2021

/label for-future-release
/label requires-followup
/assign
/translation doing
/cc @zhangjinpeng1987 @xhebox

@ti-chi-bot ti-chi-bot added translation/doing This PR's assignee is translating this PR. for-future-release This PR only applies to master for now and might cherry-pick to a future release. labels May 6, 2021
@ti-chi-bot ti-chi-bot added requires-followup This PR requires a follow-up task after being merged. and removed missing-translation-status This PR does not have translation status info. labels May 6, 2021
Copy link
Contributor

@xhebox xhebox left a comment

Choose a reason for hiding this comment

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

Rest LGTM

@@ -25,8 +25,9 @@ SET GLOBAL tidb_distsql_scan_concurrency = 10;

> **Note:**
>
> TiDB differs from MySQL in that `GLOBAL` scoped variables **persist** through TiDB server restarts. Changes are also propagated to other TiDB servers every 2 seconds [TiDB #14531](https://github.com/pingcap/tidb/issues/14531).
> Additionally, TiDB presents several MySQL variables from MySQL 5.7 as both readable and settable. This is required for compatibility, since it is common for both applications and connectors to read MySQL variables. For example: JDBC connectors both read and set query cache settings, despite not relying on the behavior.
> <!-- Since next_version version --> Executing `SET GLOBAL` applies immediately on the TiDB server where the statement was issued. All TiDB servers in the cluster are sent a notification to refresh their global variables, which will begin immediately as a background operation.
Copy link
Contributor

Choose a reason for hiding this comment

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

All other TiDB servers, receive a notification, maybe?

BTW, I think it should be noted that the notification is immediate, but the refresh/eviction is not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's actually not "all other servers" but "all servers" (the initiating server will also receive the message too).

I used the language "begin immediately as a background operation" to indicate that it has no guarantee on completion time.

Copy link
Contributor

Choose a reason for hiding this comment

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

The notifications may not always succeed to be delivered to all the tidb instances.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@xhebox @tiancaiamao I have updated the wording. PTAL again, thx!

@TomShawn TomShawn requested a review from xhebox May 11, 2021 06:03
@TomShawn TomShawn requested a review from tiancaiamao May 25, 2021 02:46
@TomShawn
Copy link
Contributor

@xhebox PTAL again. Thanks!

@TomShawn
Copy link
Contributor

/hold

@ti-chi-bot ti-chi-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 31, 2021
@qiancai
Copy link
Collaborator

qiancai commented May 31, 2021

Hi @morgo, we are preparing the user docs for TiDB v5.1 and would like to know whether the doc changes of this PR apply to TiDB v5.1 or not. Would you please check and reply? Thanks!

@morgo
Copy link
Contributor Author

morgo commented May 31, 2021

Hi @morgo, we are preparing the user docs for TiDB v5.1 and would like to know whether the doc changes of this PR apply to TiDB v5.1 or not. Would you please check and reply? Thanks!

Yes, it is in 5.1.

@qiancai
Copy link
Collaborator

qiancai commented May 31, 2021

Hi @morgo, we are preparing the user docs for TiDB v5.1 and would like to know whether the doc changes of this PR apply to TiDB v5.1 or not. Would you please check and reply? Thanks!

Yes, it is in 5.1.

Got it. Thanks for the confirmation. I'll add the v5.1 label to identify this PR.

@qiancai qiancai added v5.1 This PR/issue applies to TiDB v5.1. and removed for-future-release This PR only applies to master for now and might cherry-pick to a future release. labels May 31, 2021
@TomShawn
Copy link
Contributor

TomShawn commented Jun 2, 2021

@xhebox @tiancaiamao @zhangjinpeng1987 PTAL, thanks!

Copy link
Contributor

@xhebox xhebox left a comment

Choose a reason for hiding this comment

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

LGTM @TomShawn

@pingcap pingcap deleted a comment from ti-chi-bot Jun 3, 2021
system-variables.md Outdated Show resolved Hide resolved
system-variables.md Outdated Show resolved Hide resolved
@morgo morgo removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 9, 2021
@morgo
Copy link
Contributor Author

morgo commented Jun 9, 2021

@TomShawn this should be ready now

system-variables.md Outdated Show resolved Hide resolved
@TomShawn TomShawn added the requires-version-specific-changes After cherry-picked, the cherry-picked PR requires further changes. label Jun 9, 2021
Copy link
Contributor

@TomShawn TomShawn 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:

  • TomShawn

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.

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 the status/LGT1 Indicates that a PR has LGTM 1. label Jun 9, 2021
@TomShawn
Copy link
Contributor

TomShawn commented Jun 9, 2021

/remove-status LGT1
/status LGT2

@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 Jun 9, 2021
@TomShawn
Copy link
Contributor

TomShawn commented Jun 9, 2021

/merge

@ti-chi-bot
Copy link
Member

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

Commit hash: 5738e3c

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jun 9, 2021
@ti-chi-bot ti-chi-bot merged commit d4cef37 into pingcap:master Jun 9, 2021
@TomShawn TomShawn assigned Liuxiaozhen12 and unassigned TomShawn Jun 17, 2021
@Liuxiaozhen12
Copy link
Contributor

/remove-translation doing
/translation done

@ti-chi-bot ti-chi-bot added translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. and removed translation/doing This PR's assignee is translating this PR. labels Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires-followup This PR requires a follow-up task after being merged. requires-version-specific-changes After cherry-picked, the cherry-picked PR requires further changes. 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. translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. v5.1 This PR/issue applies to TiDB v5.1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants