-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
remove direct placement #8230
remove direct placement #8230
Conversation
Signed-off-by: xhe <xw897002528@gmail.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: xhe <xw897002528@gmail.com>
Updated with the latest commit of the upstream PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questions to be clarified:
- Placement options - 放置选项:Should this term be globally modified to "placement rules" or "placement policies"?
- Placement rules - 放置规则:What's the difference between "placement rules" and "placement policies"?
- Placement policies - 放置策略:The literal translation for "policy" is "策略" instead of "规则". If "placement policies" are translated in the same way as "placement rules", that can be confusing.
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
The feature is called placement rules in SQL. But there are only placement policy objects in SQL. These policies themselves are So, it is, policies are objects composed of options. You should not modify options. If we really want to unify something, it is policy and rule. EDIT: my current proposal, if we want to change:
EDIT2: |
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Signed-off-by: xhe <xw897002528@gmail.com>
@TomShawn Now it becomes a translation of pingcap/docs#7400 and pingcap/docs#7823 |
|
||
ALTER DATABASE test FOLLOWERS=2; -- 再次更改默认的放置选项,此更改不影响已有的表。 | ||
CREATE TABLE t4 (a INT); -- 创建表 t4,默认的放置策略 p3 生效。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CREATE TABLE t4 (a INT); -- 创建表 t4,默认的放置策略 p3 生效。 | |
CREATE TABLE t4 (a INT); -- 创建表 t4,默认的放置规则 p3 生效。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
故意的, p3是策略, 所以这个不改规则.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里英文中是 rules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
那我改一下英文
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creates a table t4 with the default policy p3.
不对啊就是policy
* TiDB 生态工具,包括 Backup & Restore (BR)、TiCDC、TiDB Lightning 和 TiDB Data Migration (DM),不支持放置规则。 | ||
* 临时表不支持放置选项,直接放置和放置策略均不支持。 | ||
* 临时表不支持放置规则。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里英文写的是“placement options”,不知需要把这里的“规则”改回为“选项”,还是改英文的“option”呢?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我觉得不改也行, 这两个都是一种意思. 中文更抽象, 英文更具体.
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
@@ -173,7 +213,7 @@ PARTITION BY RANGE( YEAR(purchased) ) ( | |||
|
|||
* Dumpling 不支持导出放置策略,见 [issue #29371](https://github.com/pingcap/tidb/issues/29371)。 | |||
* TiDB 生态工具,包括 Backup & Restore (BR)、TiCDC、TiDB Lightning 和 TiDB Data Migration (DM),不支持放置规则。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
目前生态工具的情况是,Lightning 目前不支持放置规则。CDC/Binlog 不会同步 placement 到下游数据库。BR 支持 placement (In review:https://github.com/pingcap/tidb/pull/33007)需要修改下当前文档的描述。
之后需要 @IANTHEREAL @leoppro @sunzhaoyang 看下?
/remove-status LGT1 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 89e3c74
|
Signed-off-by: xhe xw897002528@gmail.com
First-time contributors' checklist
What is changed, added or deleted? (Required)
translating pingcap/docs#7400, pingcap/docs#7823
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?