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 BAF0F200C7E for ; Tue, 9 May 2017 05:03:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B97F9160BBF; Tue, 9 May 2017 03:03:33 +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 0C4E7160BA5 for ; Tue, 9 May 2017 05:03:32 +0200 (CEST) Received: (qmail 51209 invoked by uid 500); 9 May 2017 03:03:32 -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 51200 invoked by uid 99); 9 May 2017 03:03:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2017 03:03:32 +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 970C91AF941 for ; Tue, 9 May 2017 03:03:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.126 X-Spam-Level: ** X-Spam-Status: No, score=2.126 tagged_above=-999 required=6.31 tests=[MISSING_HEADERS=1.207, SPF_FAIL=0.919] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 0c6x_XNI94yW for ; Tue, 9 May 2017 03:03:30 +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 600235FC43 for ; Tue, 9 May 2017 03:03:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by unhygienix.ics.uci.edu (Postfix) with ESMTP id A97132408CB; Mon, 8 May 2017 20:03:28 -0700 (PDT) Date: Mon, 8 May 2017 20:03:28 -0700 From: "Luo Chen (Code Review)" CC: Jenkins , Ian Maxon , abdullah alamoudi , Jianfeng Jia , Yingyi Bu , Till Westmann Reply-To: cluo8@uci.edu X-Gerrit-MessageType: comment Subject: Change in asterixdb[master]: Implemented LSM disk components alignment X-Gerrit-Change-Id: I64bf34e255def72adc73b9f87cfa628a172ea694 X-Gerrit-ChangeURL: X-Gerrit-Commit: f1b280762dd64a27cf4743c438c916544e203b72 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: <20170509030328.A97132408CB@unhygienix.ics.uci.edu> archived-at: Tue, 09 May 2017 03:03:33 -0000 Luo Chen has posted comments on this change. Change subject: Implemented LSM disk components alignment ...................................................................... Patch Set 13: (2 comments) > (5 comments) https://asterix-gerrit.ics.uci.edu/#/c/1725/7/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/AbstractLSMIndex.java File hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/AbstractLSMIndex.java: PS7, Line 337: > I'm not sure that's quite right either. Why does the index need to know abo When talking about components correlation, what it really means is that all disk components of all indexes of a dataset partition should be correlated. Indexes of different partitions of a dataset (even if they are in the same NC) could have different number of components. Suppose a NC has two partitions P1 and P2 for a dataset. They share the same memory budget for memory components and the same PrimaryOperationTracker. Whenever P1 or P2 is full would make all indexes of P1 and P2 to be flushed. However, when memory components of P1 are full, it is possible that memory components of P2 are not flashable, e.g., they are empty or flushing, and thus there's nothing to be flushed for P2. Thus, we need to group the flush operation of all indexes of one partition, instead of all indexes of all partitions blindly. https://asterix-gerrit.ics.uci.edu/#/c/1725/7/hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/LSMHarness.java File hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/LSMHarness.java: PS7, Line 458: ex > Ok, well, maybe a comment or something to make that more explicit would be Done -- To view, visit https://asterix-gerrit.ics.uci.edu/1725 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: comment Gerrit-Change-Id: I64bf34e255def72adc73b9f87cfa628a172ea694 Gerrit-PatchSet: 13 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Luo Chen Gerrit-Reviewer: Ian Maxon Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Jianfeng Jia Gerrit-Reviewer: Luo Chen Gerrit-Reviewer: Till Westmann Gerrit-Reviewer: Yingyi Bu Gerrit-Reviewer: abdullah alamoudi Gerrit-HasComments: Yes