-
Notifications
You must be signed in to change notification settings - Fork 725
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
tools: fix the inconsistency of available space #5670
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. |
Codecov ReportBase: 75.82% // Head: 75.82% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5670 +/- ##
=======================================
Coverage 75.82% 75.82%
=======================================
Files 329 329
Lines 32682 32683 +1
=======================================
+ Hits 24781 24783 +2
Misses 5781 5781
+ Partials 2120 2119 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
ID: uint64(i), | ||
Status: metapb.StoreState_Up, | ||
Capacity: 1 * units.TiB, | ||
Version: "2.1.0", |
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.
Do we need to change the version in master?plz,see @lhy1024
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 think we can do it in another pr #5672
ID: id, | ||
Status: metapb.StoreState_Up, | ||
Capacity: 1000 * units.GiB, | ||
Version: "2.1.0", |
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 about remove this Version?
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 think it's necessary.
BTW, I think it's very nice to use config file to describe our loads not hard code. And the store status can be remvoed from the case like state, available ,version . |
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
ID: id, | ||
Status: metapb.StoreState_Up, | ||
Capacity: 1000 * units.GiB, | ||
Version: "2.1.0", |
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 think it's necessary.
ID: IDAllocator.nextID(), | ||
Status: metapb.StoreState_Up, | ||
Capacity: 1 * units.TiB, | ||
Available: 980 * units.GiB, |
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.
we still need different Available
, 980 * units.GiB and 1 * units.TiB
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.
Does this case still work? I test it and there are only balance leader operator.
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.
BTW, I think this can be solved through redistributing regions.
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.
Maybe we need to use different used size?
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.
Maybe we can put ExtraUsedSpace
put into case to update store status
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.
Maybe we can put
ExtraUsedSpace
put into case to update store status
I think so.
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 plan to simplify the case because we need to recompile it every time. Currently, it can also be done by using ExtraUsedSpace
in the config 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.
If so, I think we should provide default value
ID: uint64(i), | ||
Status: metapb.StoreState_Up, | ||
Capacity: 1 * units.TiB, | ||
Version: "2.1.0", |
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 think we can do it in another pr #5672
ID: IDAllocator.nextID(), | ||
Status: metapb.StoreState_Up, | ||
Capacity: 1 * units.TiB, | ||
Available: 980 * units.GiB, |
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.
Maybe we need to use different used size?
Status: metapb.StoreState_Up, | ||
Capacity: 1 * units.TiB, | ||
Available: 900 * units.GiB, | ||
Version: "2.1.0", |
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 think we need some test to ensure release version is available for these cases
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 store version can be configured through config 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.
whar is its default version
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 rest LGTM
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
ID: IDAllocator.nextID(), | ||
Status: metapb.StoreState_Up, | ||
Capacity: 1 * units.TiB, | ||
Available: 980 * units.GiB, |
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 so, I think we should provide default value
/merge |
@rleungx: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests 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. |
This pull request has been accepted and is ready to merge. Commit hash: 9b162a3
|
Signed-off-by: Ryan Leung rleungx@gmail.com
What problem does this PR solve?
Issue Number: Ref #5468
What is changed and how does it work?
Prevent the following situation from happening.
Check List
Tests
Release note