Return-Path: X-Original-To: apmail-asterixdb-dev-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D5D31814B for ; Sun, 30 Aug 2015 05:04:48 +0000 (UTC) Received: (qmail 81810 invoked by uid 500); 30 Aug 2015 05:04:48 -0000 Delivered-To: apmail-asterixdb-dev-archive@asterixdb.apache.org Received: (qmail 81747 invoked by uid 500); 30 Aug 2015 05:04:48 -0000 Mailing-List: contact dev-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list dev@asterixdb.incubator.apache.org Received: (qmail 81732 invoked by uid 99); 30 Aug 2015 05:04:48 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Aug 2015 05:04:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 77CADC1392 for ; Sun, 30 Aug 2015 05:04:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.995 X-Spam-Level: X-Spam-Status: No, score=0.995 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.006, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id nHDlqOOzPgqW for ; Sun, 30 Aug 2015 05:04:40 +0000 (UTC) Received: from unhygienix.ics.uci.edu (unhygienix.ics.uci.edu [128.195.14.130]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id AD13220F6D for ; Sun, 30 Aug 2015 05:04:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by unhygienix.ics.uci.edu (Postfix) with ESMTP id C0102241038; Sat, 29 Aug 2015 22:02:41 -0700 (PDT) Date: Sat, 29 Aug 2015 22:02:41 -0700 From: "Till Westmann (Code Review)" To: Murtadha Hubail CC: Jenkins , abdullah alamoudi , Young-Seok Kim , Ian Maxon , Yingyi Bu , Yingyi Bu Reply-To: tillw@apache.org X-Gerrit-MessageType: comment Subject: Change in hyracks[master]: Add support for persistent local resources to IndexLifecycle... X-Gerrit-Change-Id: I2e8e974fc2f746959639ce94351f8e419a7f9093 X-Gerrit-ChangeURL: X-Gerrit-Commit: 4850bdf8435c4da2592c71db33f92bbd4247f172 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.8.4 Message-Id: <20150830050241.C0102241038@unhygienix.ics.uci.edu> Till Westmann has posted comments on this change. Change subject: Add support for persistent local resources to IndexLifecycleManager ...................................................................... Patch Set 3: Code-Review+1 (6 comments) Look much better now (and I learned a lot), thanks! My only remaining comments are about small code cleanups that would make things a littler easier to read (at least for me). I'll leave the question about other users of the interface to Yingyi. https://asterix-gerrit.ics.uci.edu/#/c/343/3/hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/dataflow/IndexDataflowHelper.java File hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/dataflow/IndexDataflowHelper.java: Line 71: long resourceID = getResourceID(); Could we move the declaration of resourceID down to the place it is actually needed (inside the try-block)? Line 73: index = lcManager.getIndex(file.getFile().getPath()); Could we create a local variable for "file.getFile().getPath()"? Line 104: long resourceID = getResourceID(); Maybe we can inline resourceID? Line 110: index = lcManager.getIndex(file.getFile().getPath()); Could we create a local variable for "file.getFile().getPath()"? Line 130: index = lcManager.getIndex(file.getFile().getPath()); Could we create a local variable for "file.getFile().getPath()"? https://asterix-gerrit.ics.uci.edu/#/c/343/3/hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/dataflow/IndexLifecycleManager.java File hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/dataflow/IndexLifecycleManager.java: Line 253: return lr.getResourceId(); return lr == null ? -1 : lr.getResourceId() ? :) -- To view, visit https://asterix-gerrit.ics.uci.edu/343 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I2e8e974fc2f746959639ce94351f8e419a7f9093 Gerrit-PatchSet: 3 Gerrit-Project: hyracks Gerrit-Branch: master Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Murtadha Hubail Gerrit-Reviewer: Till Westmann Gerrit-Reviewer: Yingyi Bu Gerrit-Reviewer: Yingyi Bu Gerrit-Reviewer: Young-Seok Kim Gerrit-Reviewer: abdullah alamoudi Gerrit-HasComments: Yes