Skip to content

auto-increment: change "continuous" to monotonic#4449

Merged
TomShawn merged 5 commits into
pingcap:masterfrom
TomShawn:continuous-monotonic
Sep 24, 2020
Merged

auto-increment: change "continuous" to monotonic#4449
TomShawn merged 5 commits into
pingcap:masterfrom
TomShawn:continuous-monotonic

Conversation

@TomShawn
Copy link
Copy Markdown
Contributor

@TomShawn TomShawn commented Sep 8, 2020

What is changed, added or deleted? (Required)

The AUTO_INCREMENT doc used the word "continuous" when it should be "monotonic". Continuous means "without any abrupt changes", i.e. at a constant rate (which could be up or down). Auto_increment is not really constant - since restarts could make values jump quite a bit. So could requesting a new batch of cached values.

Monotonic means "either never decreases or never increases". Which is the property it guarantees on a per-server basis.

The language will need version-specific changes because it says "30 thousand by default", but it needs to be 30 thousand explicitly for 2.1 which does not support AUTO_ID_CACHE.

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

  • master (the latest development version)
  • 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)?

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Have version specific changes
  • Might cause conflicts

@TomShawn TomShawn added translation/from-docs This PR is translated from a PR in pingcap/docs. size/small Changes of a small size. status/PTAL This PR is ready for reviewing. needs-cherry-pick-4.0 requires-version-specific-changes After cherry-picked, the cherry-picked PR requires further changes. labels Sep 8, 2020
@TomShawn TomShawn requested review from tangenta and yikeke September 8, 2020 05:28
Copy link
Copy Markdown
Contributor

@yikeke yikeke 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

Comment thread auto-increment.md Outdated
Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com>
@ti-srebot
Copy link
Copy Markdown
Contributor

@yikeke, @tangenta, PTAL.

1 similar comment
@ti-srebot
Copy link
Copy Markdown
Contributor

@yikeke, @tangenta, PTAL.

Copy link
Copy Markdown
Contributor

@yikeke yikeke 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-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 14, 2020
@TomShawn
Copy link
Copy Markdown
Contributor Author

@yikeke @tangenta PTAL again, thanks!

@ti-srebot
Copy link
Copy Markdown
Contributor

@yikeke, @tangenta, PTAL.

2 similar comments
@ti-srebot
Copy link
Copy Markdown
Contributor

@yikeke, @tangenta, PTAL.

@ti-srebot
Copy link
Copy Markdown
Contributor

@yikeke, @tangenta, PTAL.

Copy link
Copy Markdown
Contributor

@tangenta tangenta 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-srebot ti-srebot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Sep 24, 2020
@TomShawn TomShawn added the status/can-merge Indicates a PR has been approved by a committer. label Sep 24, 2020
@ti-srebot
Copy link
Copy Markdown
Contributor

/run-all-tests

@TomShawn TomShawn merged commit 1d584a2 into pingcap:master Sep 24, 2020
@TomShawn TomShawn deleted the continuous-monotonic branch September 24, 2020 07:07
ti-srebot pushed a commit to ti-srebot/docs-cn that referenced this pull request Sep 24, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Copy Markdown
Contributor

cherry pick to release-4.0 in PR #4587

TomShawn added a commit that referenced this pull request Sep 24, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

requires-version-specific-changes After cherry-picked, the cherry-picked PR requires further changes. size/small Changes of a small size. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. status/PTAL This PR is ready for reviewing. translation/from-docs This PR is translated from a PR in pingcap/docs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants