bipinprasad commented on a change in pull request #3379: URL: https://github.com/apache/storm/pull/3379#discussion_r583807959
########## File path: storm-server/src/main/java/org/apache/storm/scheduler/resource/normalization/NormalizedResourceOffer.java ########## @@ -178,6 +178,14 @@ public void updateForRareResourceAffinity(NormalizedResourceRequest requestedRes normalizedResources.updateForRareResourceAffinity(requestedResources.getNormalizedResources()); } + /** + * If the resource is negative, then make that resource positive. + * This will undo effects of {@link #updateForRareResourceAffinity(NormalizedResourceRequest)}. + */ + public void revertUpdatesForRareResourceAffinity() { Review comment: Yes. I can add it when I need it later. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org