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 B787A18EB7 for ; Thu, 13 Aug 2015 12:48:04 +0000 (UTC) Received: (qmail 91893 invoked by uid 500); 13 Aug 2015 12:48:04 -0000 Delivered-To: apmail-asterixdb-dev-archive@asterixdb.apache.org Received: (qmail 91838 invoked by uid 500); 13 Aug 2015 12:48:04 -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 91825 invoked by uid 99); 13 Aug 2015 12:48:04 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2015 12:48:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id CD0FE1A9FF1 for ; Thu, 13 Aug 2015 12:48:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id UxCrr5VZKrGN for ; Thu, 13 Aug 2015 12:47:57 +0000 (UTC) Received: from unhygienix.ics.uci.edu (unhygienix.ics.uci.edu [128.195.14.130]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id A254550ECB for ; Thu, 13 Aug 2015 04:55:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by unhygienix.ics.uci.edu (Postfix) with ESMTP id 4F978240F88; Wed, 12 Aug 2015 21:53:46 -0700 (PDT) Date: Wed, 12 Aug 2015 21:53:46 -0700 From: "Young-Seok Kim (Code Review)" To: Ian Maxon CC: Jenkins , Murtadha Hubail Reply-To: kisskys@gmail.com X-Gerrit-MessageType: comment Subject: Change in hyracks[master]: Make LSM bulkload append-only and write-once. X-Gerrit-Change-Id: I80fb891b5310252143854a336b591bf3f8cd4ba7 X-Gerrit-ChangeURL: X-Gerrit-Commit: cfa459e37fdb2ea206c24992a80b60eb0086aea4 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: <20150813045346.4F978240F88@unhygienix.ics.uci.edu> Young-Seok Kim has posted comments on this change. Change subject: Make LSM bulkload append-only and write-once. ...................................................................... Patch Set 17: (10 comments) I went over all files and left comments. Please address them. https://asterix-gerrit.ics.uci.edu/#/c/255/17/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/impls/LSMInvertedIndex.java File hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/impls/LSMInvertedIndex.java: Line 819: //component.getInvIndex().create(); let's remove this Line 900: } This method is no-op: So, either remove or do no-op literally. https://asterix-gerrit.ics.uci.edu/#/c/255/17/hyracks/hyracks-storage-am-rtree/src/main/java/edu/uci/ics/hyracks/storage/am/rtree/frames/RTreeNSMInteriorFrame.java File hyracks/hyracks-storage-am-rtree/src/main/java/edu/uci/ics/hyracks/storage/am/rtree/frames/RTreeNSMInteriorFrame.java: Line 40: public static final int childPtrSize = 4; Why is this public? Line 192: } This one is very similar to the existing method above and seems to be easily factored out by having a private function. https://asterix-gerrit.ics.uci.edu/#/c/255/17/hyracks/hyracks-storage-am-rtree/src/main/java/edu/uci/ics/hyracks/storage/am/rtree/impls/RTree.java File hyracks/hyracks-storage-am-rtree/src/main/java/edu/uci/ics/hyracks/storage/am/rtree/impls/RTree.java: Line 1038: //queue.offer(frontier.page); should go away Line 1067: if (toRoot && !propagated && level < nodeFrontiers.size() - 1) { checking propagated is useless since propagated is always false if toRoot is true. https://asterix-gerrit.ics.uci.edu/#/c/255/17/hyracks/hyracks-storage-common/src/main/java/edu/uci/ics/hyracks/storage/common/buffercache/ClockPageReplacementStrategy.java File hyracks/hyracks-storage-common/src/main/java/edu/uci/ics/hyracks/storage/common/buffercache/ClockPageReplacementStrategy.java: Line 41: this.maxAllowedNumPages = new AtomicInteger(maxAllowedNumPages); why there are two maxAllowedNumPages? Both of them don't change the value initially assigned. Line 81: if (maxAllowedNumPages.get() == 0) When this value can be 0? Line 102: clockPtr.set(clockPtr.incrementAndGet() % (numPages.get()-1)); what is this -1 for? Line 118: } When is addPage used instead of allocatePage()? What the usage difference between the two methods? -- To view, visit https://asterix-gerrit.ics.uci.edu/255 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I80fb891b5310252143854a336b591bf3f8cd4ba7 Gerrit-PatchSet: 17 Gerrit-Project: hyracks Gerrit-Branch: master Gerrit-Owner: Ian Maxon Gerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Murtadha Hubail Gerrit-Reviewer: Young-Seok Kim Gerrit-HasComments: Yes