-
Notifications
You must be signed in to change notification settings - Fork 287
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
doc(ticdc): add design document for storage sink #8540
doc(ticdc): add design document for storage sink #8540
Conversation
[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. |
e78f1d8
to
3aa75fb
Compare
/run-all-tests |
- `year`: the separator is the year of the transaction commit date, for example, <code>s3://bucket/prefix1/prefix2/schema1/table1/9999/**2022**</code>. | ||
- `month`: the separator is the year and month of the transaction commit date, for example, <code>s3://bucket/prefix1/prefix2/schema1/table1/9999/**2022-01**</code>. | ||
- `day`: the separator is the year, month, and day of the transaction commit date, for example, <code>s3://bucket/prefix1/prefix2/schema1/table1/9999/**2022-01-02**</code>. | ||
- `num`: saves the serial number of the file that records the data change, for example, <code>s3://bucket/prefix1/prefix2/schema1/table1/9999/2022-01-02/CDC**000005**.csv</code>. |
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 does the serial number increase, is there any restriction to the size of single csv file?
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.
Data change files are saved to the downstream when either flush-interval or file-size meets the requirements. Ref: https://docs.pingcap.com/tidb/stable/ticdc-sink-to-cloud-storage#configure-nfs
|
||
##### Transactional constraints | ||
- In a single CSV file, the commit-ts of a row is equal to or smaller than that of the subsequent row. | ||
- The same transactions of a single table are stored in the same CSV file. |
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.
Is this suitable for large transaction?
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.
Good advice, the above conditions can be guaranteed only when transaction-atomicity is set to table level.
/run-all-tests |
/run-verify |
Co-authored-by: amyangfei <amyangfei@gmail.com>
94103c2
to
ac0fc45
Compare
/run-all-tests |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: ac0fc45
|
/test all |
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: ref #6797
What is changed and how it works?
Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note