Github user jerrypeng commented on a diff in the pull request:
https://github.com/apache/storm/pull/921#discussion_r47706930
--- Diff:
storm-core/src/jvm/backtype/storm/scheduler/resource/RAS_Node.java ---
@@ -230,6 +241,61 @@ public void freeTopology(String topId, Cluster
cluster) {
_topIdToUsedSlots.remove(topId);
}
+ private void freeMemory(double amount) {
+ _availMemory += amount;
+ LOG.debug("freeing {} memory on node {}...avail mem: {}", amount,
this.getHostname(), _availMemory);
+ if (_availMemory > this.getTotalMemoryResources()) {
+ LOG.warn("Freeing more memory than there exists!");
+ }
+ }
+
+ private void freeCPU(double amount) {
+ _availCPU += amount;
+ LOG.debug("freeing {} CPU on node...avail CPU: {}", amount,
this.getHostname(), _availCPU);
+ if (_availCPU > this.getAvailableCpuResources()) {
+ LOG.warn("Freeing more memory than there exists!");
--- End diff --
will fix
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---