xiaoyao1991 commented on a change in pull request #3180: [Streamlet] Fix 
streamlet config to apply cpu and ram in topology
URL: https://github.com/apache/incubator-heron/pull/3180#discussion_r251994573
 
 

 ##########
 File path: heron/api/src/java/org/apache/heron/streamlet/Config.java
 ##########
 @@ -196,16 +200,18 @@ public Builder setPerContainerCpu(double 
perContainerCpu) {
      * @param perContainerRam Per-container (per-instance) RAM expressed as a 
Long.
      */
     public Builder setPerContainerRam(long perContainerRam) {
-      this.ram = perContainerRam;
-      return this;
+      return setPerContainerRamInBytes(perContainerRam);
 
 Review comment:
   This indirection seems unnecessary

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to