-
Notifications
You must be signed in to change notification settings - Fork 228
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
[apache/helix] -- Issue during onboarding resources without instances #2782
[apache/helix] -- Issue during onboarding resources without instances #2782
Conversation
Is this just for adding a test? |
Hey @junkaixue yes, I first reproduced it using the test, now added the fix. Would you pls review it when get a chance. |
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! thanks for investigating this issue.
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.
Please remove WIP from title
Done |
This PR has been reviewed and approved by @zpinto. Final Commit Message: When adding a new WAGED resource with a tag and without any instances against that tag, we are observing NPE coming from the system. To solve this issue we are adding a check in the ResourceComputationStage to have such resources excluded from the pipeline computation and only be considered when there are actual resource partitions (>0) to be assigned to the instances. |
lgtm. Let's wait for the tests. |
Hey @junkaixue, the PR CI successful. Also ran the full CI suite in my repo and thats successful as well: |
New Release Snapshot with several fixes: [apache/helix] -- Issue during onboarding resources without instances apache#2782 [apache/helix] -- Provide JDK 1.8 (backward) compatibility of helix-core apache#2775 Do not start the server if user uses the default SECRET_TOKEN env value apache#2783 Delete expected version apache#2759 [apache/helix] -- Fix PreferenceList Ordering Changes during Maintenance Mode apache#2778
Issues
Fixes NPE Issues when we add a WAGED resource without instances against the resource tag #2781
Description
When adding a new WAGED resource with a tag and without any instances against that tag, we are observing NPE coming from the system. This in turn fails the complete WAGED cluster rebalance pipeline. This particularly happen when the
numPartitions = 0
.To solve this issue we are adding a check in the
ResourceComputationStage
to have such resources excluded from the pipeline computation and only be considered when there are actual resource partitions (>0
) to be assigned to the instances.Tests
(List the names of added unit/integration tests)
Changes that Break Backward Compatibility (Optional)
(Consider including all behavior changes for public methods or API. Also include these changes in merge description so that other developers are aware of these changes. This allows them to make relevant code changes in feature branches accounting for the new method/API behavior.)
Documentation (Optional)
(Link the GitHub wiki you added)
Commits
Code Quality
(helix-style-intellij.xml if IntelliJ IDE is used)