Skip to content

[Fix](CCR) Use tableId as the credential for CCR syncer instead of tableName#21466

Merged
dataroaring merged 2 commits intoapache:masterfrom
deadlinefen:getbinlog-table-id
Jul 5, 2023
Merged

[Fix](CCR) Use tableId as the credential for CCR syncer instead of tableName#21466
dataroaring merged 2 commits intoapache:masterfrom
deadlinefen:getbinlog-table-id

Conversation

@deadlinefen
Copy link
Contributor

@deadlinefen deadlinefen commented Jul 4, 2023

Bug:
In the current version, CCR’s getBinlog and BeginTxn operations both depend on tableName, which will cause syncer to fail when the source cluster changes the table name.

Bugfix:

  • Add tableId in TGetBinlogRequest.
    Add a tableId field in TGetBinlogRequest, and when the tableId field is set, the table field will be invalid. If the tableId field is unset, the source cluster will find the corresponding tableId based on this tableName, and this operation should only be used when initializing syncer.
  • change tableName to tableId in TBeginTxnRequest.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

clang-tidy review says "All clean, LGTM! 👍"

@deadlinefen
Copy link
Contributor Author

run buildall

Copy link
Contributor

@JackDrogon JackDrogon left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

PR approved by anyone and no changes requested.

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jul 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

PR approved by at least one committer and no changes requested.

Copy link
Contributor

@JackDrogon JackDrogon left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/2.0.0-merged kind/test reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants