Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 16E0A200CA7 for ; Wed, 31 May 2017 07:13:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 15824160BDC; Wed, 31 May 2017 05:13:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5C88B160BC9 for ; Wed, 31 May 2017 07:13:04 +0200 (CEST) Received: (qmail 89130 invoked by uid 500); 31 May 2017 05:13:03 -0000 Mailing-List: contact notifications-help@asterixdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.apache.org Delivered-To: mailing list notifications@asterixdb.apache.org Received: (qmail 89121 invoked by uid 99); 31 May 2017 05:13:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2017 05:13:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D36DCC0296 for ; Wed, 31 May 2017 05:13:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.919 X-Spam-Level: X-Spam-Status: No, score=0.919 tagged_above=-999 required=6.31 tests=[SPF_FAIL=0.919] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9GMO3cZEGr6q for ; Wed, 31 May 2017 05:13:02 +0000 (UTC) Received: from unhygienix.ics.uci.edu (unhygienix.ics.uci.edu [128.195.14.130]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 920035FE57 for ; Wed, 31 May 2017 05:13:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by unhygienix.ics.uci.edu (Postfix) with ESMTP id 0EC10242062; Tue, 30 May 2017 22:13:01 -0700 (PDT) Date: Tue, 30 May 2017 22:13:01 -0700 From: "Michael Blow (Code Review)" To: abdullah alamoudi CC: Jenkins , Yingyi Bu , Till Westmann Reply-To: mblow@apache.org X-Gerrit-MessageType: comment Subject: Change in asterixdb[master]: Change IO directory for integration util to be a directory i... X-Gerrit-Change-Id: I3dfb74dd4228725fb624eb1d21f621b7855f3d37 X-Gerrit-ChangeURL: X-Gerrit-Commit: 2ff53eb235b659371146a24b0917d0fdf60d1013 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.7 Message-Id: <20170531051301.0EC10242062@unhygienix.ics.uci.edu> archived-at: Wed, 31 May 2017 05:13:05 -0000 Michael Blow has posted comments on this change. Change subject: Change IO directory for integration util to be a directory in target ...................................................................... Patch Set 6: (4 comments) https://asterix-gerrit.ics.uci.edu/#/c/1789/6/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/common/AsterixHyracksIntegrationUtil.java File asterixdb/asterix-app/src/main/java/org/apache/asterix/api/common/AsterixHyracksIntegrationUtil.java: PS6, Line 75: System.setProperty(ControllerConfig.TMP_DIR, getDefaultStoragePath()) this shouldn't be needed, you are setting the DEFAULT_DIR below. PS6, Line 136: joinPath(System.getProperty(ControllerConfig.TMP_DIR) use getDefaultStoragePath() here, then there's no reason to set java.io.tmpdir PS6, Line 173: System.getProperty(ControllerConfig.TMP_DIR) getDefaultStoragePath() https://asterix-gerrit.ics.uci.edu/#/c/1789/6/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-common/src/main/java/org/apache/hyracks/control/common/controllers/ControllerConfig.java File hyracks-fullstack/hyracks/hyracks-control/hyracks-control-common/src/main/java/org/apache/hyracks/control/common/controllers/ControllerConfig.java: PS6, Line 35: public static final String TMP_DIR = "java.io.tmpdir" What's the advantage of making this a constant? The JDK code seems to inline this reference everywhere... If we really want a constant, I think it should be in some generic helper/util class and be named JAVA_IO_TMPDIR for clarity. -- To view, visit https://asterix-gerrit.ics.uci.edu/1789 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I3dfb74dd4228725fb624eb1d21f621b7855f3d37 Gerrit-PatchSet: 6 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: abdullah alamoudi Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-Reviewer: Till Westmann Gerrit-Reviewer: Yingyi Bu Gerrit-Reviewer: abdullah alamoudi Gerrit-HasComments: Yes