Github user knusbaum commented on a diff in the pull request:
https://github.com/apache/storm/pull/1500#discussion_r67725802
--- Diff:
storm-core/src/jvm/org/apache/storm/topology/BaseConfigurationDeclarer.java ---
@@ -56,7 +56,11 @@ public T setNumTasks(Number val) {
@Override
public T setMemoryLoad(Number onHeap) {
- return setMemoryLoad(onHeap,
Utils.getDouble(conf.get(Config.TOPOLOGY_COMPONENT_RESOURCES_OFFHEAP_MEMORY_MB)));
+ if (onHeap != null) {
+ onHeap = onHeap.doubleValue();
+ return
addConfiguration(Config.TOPOLOGY_COMPONENT_RESOURCES_ONHEAP_MEMORY_MB, onHeap);
+ }
+ return null;
--- End diff --
Maybe it would make more sense for `setMemoryLoad(Number onHeap, Number
offHeap)` to call into this one instead.
---
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.
---