-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: support partition table in tiflash #14735
Conversation
Signed-off-by: crazycs <[email protected]>
/rebuild |
/run-build-image |
Signed-off-by: crazycs <[email protected]>
…into tiflash-partition
Signed-off-by: crazycs <[email protected]>
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.
LGTM
LGTM |
Co-Authored-By: tangenta <[email protected]>
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
Signed-off-by: crazycs <[email protected]>
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.
LGTM
ddl/table.go
Outdated
break | ||
} | ||
} | ||
tblInfo.TiFlashReplica.Available = false |
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.
How do we deal with it when the physical ID is not found in tblInfo.TiFlashReplica.AvailablePartitionIDs
?
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 catch, this line should put in line #765;
If physical ID is not found, do nothing, just ignore it will be ok.
Signed-off-by: crazycs <[email protected]>
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.
LGTM
/run-all-tests |
Signed-off-by: crazycs <[email protected]>
Signed-off-by: crazycs [email protected]
What problem does this PR solve?
Support set tiflash replica for partition table.
For the partition table, need a separate variable for separate partition to indicate the partition tiflash replica was available. Only when the all partition table replica was available, then the table tiflash replica was available.
Related Parser PR: pingcap/parser#742
What is changed and how it works?
For partition table tiflash replica.
/tiflash/replica
should return partition ID, not table ID./tiflash/replica
, it should treat the id as partition ID.Check List
Tests
Code changes
Side effects
Related changes
Release note