Resource deletion causing NPE #83
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues
Fixes production NullPointerException in WagedRebalancer when resources are deleted but still exist in cached assignment metadata store.
Description
`Exception while executing DEFAULT pipeline for cluster uic-hs-33. Will not continue to next pipeline
Exception Chain
Format
String
java.lang.NullPointerException
at jdk.internal.reflect.GeneratedConstructorAccessor244.newInstance(null:-1)
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:564)
at java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:591)
at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:689)
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:159)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:173)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:765)
at org.apache.helix.controller.rebalancer.waged.WagedRebalancer.computeNewIdealStates(WagedRebalancer.java:277)
at org.apache.helix.controller.stages.BestPossibleStateCalcStage.computeResourceBestPossibleStateWithWagedRebalancer(BestPossibleStateCalcStage.java:445)
at org.apache.helix.controller.stages.BestPossibleStateCalcStage.compute(BestPossibleStateCalcStage.java:289)
at org.apache.helix.controller.stages.BestPossibleStateCalcStage.process(BestPossibleStateCalcStage.java:94)
at org.apache.helix.controller.pipeline.Pipeline.handle(Pipeline.java:75)
at org.apache.helix.controller.GenericHelixController.handleEvent(GenericHelixController.java:905)
at org.apache.helix.controller.GenericHelixController$ClusterEventProcessor.run(GenericHelixController.java:1556)
java.lang.NullPointerException`
Root Cause:
Tests
(List the names of added unit/integration tests)
(If CI test fails due to known issue, please specify the issue and test PR locally. Then copy & paste the result of "mvn test" to here.)
mvn test -Dtest=TestWagedRebalancer -pl helix-core