-
Notifications
You must be signed in to change notification settings - Fork 709
add troubleshoot doc for TiCDC #2615
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 troubleshoot doc for TiCDC #2615
Conversation
ticdc/troubleshoot-ticdc.md
Outdated
|
|
||
| # Common Problems and Troubleshooting | ||
|
|
||
| This document includes some common problems while using TiCDC and appropriate solutions. It also summarizes some common operation failures and ways to fix them. |
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.
Adverbial clauses can omit the subject (and the be verb) only if the subject of the dependent (the adverbial clause) is the same as that of the independent clause. Multiple similar issues exist in this 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.
Thanks for your review. I have added possible subjects (not 100% sure). The subject seemed vague to me in some original sentences, because I didn't get the whole picture of TiCDC.
ticdc/troubleshoot-ticdc.md
Outdated
|
|
||
| ## How to choose start-ts while starting a task | ||
|
|
||
| First, you should know that the `start-ts` of a replication task corresponds to a TSO of the upstream TiDB cluster. The replication task will start its data request from this TSO. Therefore, the `start-ts` should meet two conditions below: |
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.
Limit the use of should in user documentation.
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.
I found that should (111 times), need(s) to (125 times) and must (118 times) are almost equally used in current TiDB docs and their links, but should seldom goes with user or you . So, I changed some of should to need to or must.
ticdc/troubleshoot-ticdc.md
Outdated
|
|
||
| ## When a task gets started, it prompts that some tables cannot be replicated | ||
|
|
||
| When using `cdc cli changefeed create` to create a replication task, it will check if the upstream tables comply with the [restrictions](/ticdc/ticdc-overview.md#restrictions). If not, it will prompt that `some tables are not eligible to replicate` and list out the ineligible tables. If you choose `Y` or `y`, you will continue creating the replication task and automatically ignore all the updates of these ineligible tables. If you choose other inputs, the replication task will not be created. |
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.
Ditto.
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.
I made subjects clearer.
|
@Anastasia-Lu, please update your pull request. |
1 similar comment
|
@Anastasia-Lu, please update your pull request. |
|
@Anastasia-Lu, please update your pull request. |
1 similar comment
|
@Anastasia-Lu, please update your pull request. |
|
|
||
| # Common Problems and Troubleshooting | ||
|
|
||
| This document includes some common problems that you might have while using TiCDC and provides appropriate solutions. It also summarizes some common operation failures and ways to fix them. |
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.
| This document includes some common problems that you might have while using TiCDC and provides appropriate solutions. It also summarizes some common operation failures and ways to fix them. | |
| This document includes some common problems that you might have while using TiCDC and provides appropriate solutions. It also summarizes some common operation problems and ways to fix them. |
|
|
||
| First, you need to know that the `start-ts` of a replication task corresponds to a TSO of the upstream TiDB cluster. The replication task will start its data request from this TSO. Therefore, the `start-ts` should meet two conditions below: | ||
|
|
||
| - The value of `start-ts` must be larger than current `tikv_gc_safe_point`, otherwise, an error would occur when creating the task. |
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.
| - The value of `start-ts` must be larger than current `tikv_gc_safe_point`, otherwise, an error would occur when creating the task. | |
| - The value of `start-ts` must be larger than current `tikv_gc_safe_point` value. Otherwise, an error will occurs when you create a task. |
| - The value of `start-ts` must be larger than current `tikv_gc_safe_point`, otherwise, an error would occur when creating the task. | ||
| - While starting a task, you need to ensure that the downstream has already got all the data previous to `start-ts`. You can relax this requirement accordingly, if the replication task is for message queue or other scenarios, in which strict data consistency between upstream and downstream is not strictly required. | ||
|
|
||
| If `start-ts` is not specified or specified as `0`, when a replication task gets started, TiCDC will get the current TSO from PD and start to replicate data from it. |
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.
| If `start-ts` is not specified or specified as `0`, when a replication task gets started, TiCDC will get the current TSO from PD and start to replicate data from it. | |
| If `start-ts` is not specified or specified as `0`, when a replication task is started, TiCDC will get the current TSO from PD and start to replicate data from this TSO. |
|
|
||
| ## When a task gets started, it prompts that some tables cannot be replicated | ||
|
|
||
| When you use `cdc cli changefeed create` to create a replication task, TiCDC will check if the upstream tables comply with the [restrictions](/ticdc/ticdc-overview.md#restrictions). If they don't, TiCDC will prompt that `some tables are not eligible to replicate`, and will list out the ineligible tables. If you choose `Y` or `y`, TiCDC will continue creating the replication task and automatically ignore all the updates of these ineligible tables. If you choose other inputs, the replication task will not be created. |
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.
| When you use `cdc cli changefeed create` to create a replication task, TiCDC will check if the upstream tables comply with the [restrictions](/ticdc/ticdc-overview.md#restrictions). If they don't, TiCDC will prompt that `some tables are not eligible to replicate`, and will list out the ineligible tables. If you choose `Y` or `y`, TiCDC will continue creating the replication task and automatically ignore all the updates of these ineligible tables. If you choose other inputs, the replication task will not be created. | |
| When you execute `cdc cli changefeed create` to create a replication task, TiCDC will check whether the upstream tables meet the [restrictions](/ticdc/ticdc-overview.md#restrictions). If not, TiCDC will prompt that `some tables are not eligible to replicate`, and will list out the ineligible tables. If you choose `Y` or `y`, TiCDC will continue creating the replication task and automatically ignore all the updates of these ineligible tables. If you choose other inputs, the replication task will not be created. |
|
The change of this PR is made in #2751. So I'll close this PR. |
What is changed, added or deleted? (Required)
Translate the troubleshoot doc for TiCDC till the end of the second subtitle.
Which TiDB version(s) do your changes apply to? (Required)
If you select two or more versions from above, to trigger the bot to cherry-pick this PR to your desired release version branch(es), you must add corresponding labels such as needs-cherry-pick-4.0, needs-cherry-pick-3.1, needs-cherry-pick-3.0, and needs-cherry-pick-2.1.
What is the related PR or file link(s)?