Skip to content

add binlog usage restrictions#5125

Merged
ti-chi-bot merged 8 commits into
pingcap:masterfrom
Joyinqin:binlog-limit
Mar 29, 2021
Merged

add binlog usage restrictions#5125
ti-chi-bot merged 8 commits into
pingcap:masterfrom
Joyinqin:binlog-limit

Conversation

@Joyinqin
Copy link
Copy Markdown
Contributor

First-time contributors' checklist

What is changed, added or deleted? (Required)

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

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

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 added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. missing-translation-status This PR does not have translation status info. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 26, 2021
@Joyinqin
Copy link
Copy Markdown
Contributor Author

/translation from-docs-cn
/label v5.0
/label needs-cherry-pick-5.0

@ti-chi-bot ti-chi-bot added translation/from-docs-cn This PR is translated from a PR in pingcap/docs-cn. v5.0 This PR/issue applies to TiDB v5.0. needs-cherry-pick-5.0 and removed missing-translation-status This PR does not have translation status info. labels Mar 26, 2021
@Joyinqin Joyinqin marked this pull request as ready for review March 26, 2021 08:50
@ti-chi-bot ti-chi-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 26, 2021
@Joyinqin
Copy link
Copy Markdown
Contributor Author

/cc @ran-huang @sticnarf

@Joyinqin
Copy link
Copy Markdown
Contributor Author

/uncc sticnarf

@ti-chi-bot ti-chi-bot removed the request for review from sticnarf March 26, 2021 09:15
@Joyinqin
Copy link
Copy Markdown
Contributor Author

/cc @IANTHEREAL

@ti-chi-bot ti-chi-bot requested a review from IANTHEREAL March 26, 2021 09:15
Comment thread tidb-binlog/tidb-binlog-overview.md Outdated

> **Note:**
>
> TiDB Binlog is not compatible with some features introduced in TiDB v5.0.0-rc and they cannot be used together. For details, see [Notes](#notes). It is recommended to use [TiCDC](/ticdc/ticdc-overview.md) instead.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
> TiDB Binlog is not compatible with some features introduced in TiDB v5.0.0-rc and they cannot be used together. For details, see [Notes](#notes). It is recommended to use [TiCDC](/ticdc/ticdc-overview.md) instead.
> TiDB Binlog is not compatible with some features introduced in TiDB v5.0.0-rc, and they cannot be used together. For details, see [Notes](#notes). It is recommended to use [TiCDC](/ticdc/ticdc-overview.md) instead of TiDB Binlog.

Let's make it clear that we are talking about "Binlog" rather than "features introduced in 5.0 rc"

@ran-huang
Copy link
Copy Markdown
Contributor

tidb-binlog/tidb-binlog-overview.md
   59:7-59:64  warning  Dead anchor: /clustered-indexes.md#limitations                                                                           pingcap-docs-anchors  remark-lint
  61:28-61:98  warning  Dead anchor: /system-variables.md#tidb_enable_1pc-new-in-v500-rc. Did you mean #tidb_enable_async_commit-new-in-v500-rc  pingcap-docs-anchors  remark-lint

Please fix 2 dead anchors.

Comment thread tidb-binlog/tidb-binlog-overview.md
Comment thread tidb-binlog/tidb-binlog-overview.md Outdated
* Drainer supports replicating binlogs to MySQL, TiDB, Kafka or local files. If you need to replicate binlogs to other Drainer unsuppored destinations, you can set Drainer to replicate the binlog to Kafka and read the data in Kafka for customized processing according to binlog consumer protocol. See [Binlog Consumer Client User Guide](/tidb-binlog/binlog-consumer-client.md).

* To use TiDB Binlog for recovering incremental data, set the config `db-type` to `file` (local files in the proto buffer format). Drainer converts the binlog to data in the specified [proto buffer format](https://github.com/pingcap/tidb-binlog/blob/master/proto/binlog.proto) and writes the data to local files. In this way, you can use [Reparo](/tidb-binlog/tidb-binlog-reparo.md) to recover data incrementally.
* TiDB Binlog is not compatible with the following features introduced in TiDB v5.0.0-rc and they cannot be used together:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can we put you can use [TiCDC](/ticdc/ticdc-overview.md) instead. after this sentence, and remove the same content in its clause

@IANTHEREAL
Copy link
Copy Markdown
Contributor

Rest LGTM

@Joyinqin
Copy link
Copy Markdown
Contributor Author

tidb-binlog/tidb-binlog-overview.md
   59:7-59:64  warning  Dead anchor: /clustered-indexes.md#limitations                                                                           pingcap-docs-anchors  remark-lint
  61:28-61:98  warning  Dead anchor: /system-variables.md#tidb_enable_1pc-new-in-v500-rc. Did you mean #tidb_enable_async_commit-new-in-v500-rc  pingcap-docs-anchors  remark-lint

Please fix 2 dead anchors.

Waiting for #5129 to merge. Another one has been fixed.

@Joyinqin
Copy link
Copy Markdown
Contributor Author

@ran-huang PTAL again,thx~

@ran-huang
Copy link
Copy Markdown
Contributor

/lgtm

@ti-chi-bot
Copy link
Copy Markdown
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • ran-huang

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 writing /lgtm in a comment.
Reviewer can cancel approval by writing /lgtm cancel in a comment.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 26, 2021
@IANTHEREAL
Copy link
Copy Markdown
Contributor

/lgtm

@ti-chi-bot
Copy link
Copy Markdown
Member

@IANTHEREAL: /lgtm is only allowed for the reviewers in list.

Details

In response to this:

/lgtm

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.

@ran-huang
Copy link
Copy Markdown
Contributor

/label require-LGT1

@ti-chi-bot ti-chi-bot added the require-LGT1 Indicates that the PR requires an LGTM. label Mar 29, 2021
@CharLotteiu
Copy link
Copy Markdown
Contributor

/rebase

1 similar comment
@yikeke
Copy link
Copy Markdown
Contributor

yikeke commented Mar 29, 2021

/rebase

@yikeke
Copy link
Copy Markdown
Contributor

yikeke commented Mar 29, 2021

/merge

@ti-chi-bot
Copy link
Copy Markdown
Member

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

DetailsCommit hash: adcc283

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Mar 29, 2021
@ti-chi-bot ti-chi-bot merged commit 51769e2 into pingcap:master Mar 29, 2021
ti-srebot pushed a commit to ti-srebot/docs that referenced this pull request Mar 29, 2021
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Copy Markdown
Contributor

cherry pick to release-5.0 in PR #5158

ti-chi-bot pushed a commit that referenced this pull request Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

require-LGT1 Indicates that the PR requires an LGTM. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1. translation/from-docs-cn This PR is translated from a PR in pingcap/docs-cn. v5.0 This PR/issue applies to TiDB v5.0.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants