From dev-return-60366-archive-asf-public=cust-asf.ponee.io@storm.apache.org Sat Aug 3 08:47:01 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 A42FF1802C7 for ; Sat, 3 Aug 2019 10:47:00 +0200 (CEST) Received: (qmail 89144 invoked by uid 500); 3 Aug 2019 08:46:56 -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 88897 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: <156482201562.30580.15114967283419882674.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_r310344310 ########## File path: storm-server/src/main/java/org/apache/storm/scheduler/resource/strategies/scheduling/DefaultResourceAwareStrategy.java ########## @@ -39,6 +39,9 @@ @Override public SchedulingResult schedule(Cluster cluster, TopologyDetails td) { + boolean oneWorkerPerExecutor = (Boolean) td.getConf().getOrDefault(Config.TOPOLOGY_RAS_ONE_WORKER_PER_EXECUTOR, false); Review comment: I don't think you need to set a default here. defaults.yaml should always be loaded, so there's no risk of the property being null. ---------------------------------------------------------------- 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