-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-24931 Fix for Candidate generator getAction method ignoring 0th… #2293
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
HBASE-24931 Fix for Candidate generator getAction method ignoring 0th… #2293
Conversation
|
🎊 +1 overall
This message was automatically generated. |
virajjasani
left a comment
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.
@rda3mon Thanks for the PR and considering region of 0th location sounds reasonable, however can you please provide the purpose behind this find? Is it that you observed this behaviour while generating plans?
Just trying to figure out if this was bug or intentional behaviour by any chance. Also, this part of the code is not updated since HBASE-10351. (which of course doesn't mean that this is not a valid bug)
|
@virajjasani I noticed this bug while writing a custom Candidate generator for reassigning those regions which had one of their favorednodes as dead. Cost Multiplier was on the higher side, and hence it was always balancing while 1 region was never reassigned. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
Fixing broken tests |
virajjasani
left a comment
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.
+1, sounds reasonable.
|
@busbey would you like to take a look? |
|
@rda3mon did you miss git push by any chance when you said "Fixing broken tests" ? |
|
@virajjasani I need another day or so. It requires more involved understanding to fix broken tests. I will get back once I fix them |
|
No worries, please take your time. |
|
@virajjasani I spent a good day and half. Couldn't solve this issue. Tagging origin author to help me on this @PierreZ and have written a detailed email. Brief detail: |
|
Thanks @rda3mon for all your efforts. IMHO, test might require modification in this case. However, to cross verify, you can initiate a mail thread on |
|
@virajjasani Original author @PierreZ will be able to look at this post 14th Sep as he doesn't have access to laptop until then.. So, will wait till then. |
|
@virajjasani Increase in ALLOWED_WINDOW will not be of much help. Because, the deviation isn't small. Expected 50 * 0.4 = 20. Actual is 49. |
|
@virajjasani I am closing this as I couldn't fix the test cases and it was very tricky to narrow down the issue. |
|
FIxed by #3024 |
… index