-
Notifications
You must be signed in to change notification settings - Fork 3k
Remove magic number usage for last assigned partition id #4386
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
Conversation
| return UNPARTITIONED_SPEC; | ||
| } | ||
|
|
||
| public static int unpartitionedLastAssignedId() { |
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 don't think this should be public.
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.
change it to package level.
|
Looks good overall. Thanks, @yittg! |
|
@rdblue would you like to merge this one? |
| return UNPARTITIONED_SPEC; | ||
| } | ||
|
|
||
| private static int unpartitionedLastAssignedId() { |
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.
It is private now, @rdblue
|
There is a test failure that seems unrelated to this PR. cc @kbendick |
|
Thanks @stevenzwu . And shall we open an issue to track this fragile test case, @kbendick . |
While reading code about partition spec, i find some usages of magic number 999 which should be
PARTITION_DATA_ID_START - 1i think. Fix me if i misunderstand.@rdblue would you help to review if you have time?