From dev-return-60363-archive-asf-public=cust-asf.ponee.io@storm.apache.org Sat Aug 3 08:47:00 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id AEA111802C7 for ; Sat, 3 Aug 2019 10:46:59 +0200 (CEST) Received: (qmail 88938 invoked by uid 500); 3 Aug 2019 08:46:55 -0000 Mailing-List: contact dev-help@storm.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@storm.apache.org Delivered-To: mailing list dev@storm.apache.org Received: (qmail 88862 invoked by uid 99); 3 Aug 2019 08:46:55 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Aug 2019 08:46:55 +0000 From: GitBox To: dev@storm.apache.org Subject: [GitHub] [storm] srdo commented on a change in pull request #3096: STORM-3480 Implement One Worker Per Executor RAS Option Message-ID: <156482201542.30573.7008293601042987915.gitbox@gitbox.apache.org> Date: Sat, 03 Aug 2019 08:46:55 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit srdo commented on a change in pull request #3096: STORM-3480 Implement One Worker Per Executor RAS Option URL: https://github.com/apache/storm/pull/3096#discussion_r310343985 ########## File path: storm-server/src/main/java/org/apache/storm/scheduler/Cluster.java ########## @@ -743,9 +746,10 @@ public void freeSlot(WorkerSlot slot) { assertValidTopologyForModification(assignment.getTopologyId()); assignment.unassignBySlot(slot); String nodeId = slot.getNodeId(); - assignment.setTotalSharedOffHeapMemory( - nodeId, calculateSharedOffHeapMemory(nodeId, assignment)); + assignment.setTotalSharedOffHeapNodeMemory( + nodeId, calculateSharedOffHeapNodedMemory(nodeId, assignment)); nodeToScheduledResourcesCache.computeIfAbsent(nodeId, MAKE_MAP).put(slot, new NormalizedResourceRequest()); + nodeToScheduledOffHeapNodeMemoryCache.computeIfAbsent(nodeId, MAKE_MAP_STRING_DOUBLE); Review comment: Is this necessary? We just add the map here, and don't do anything with it. ---------------------------------------------------------------- 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: users@infra.apache.org With regards, Apache Git Services