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 63A0F2009C6 for ; Tue, 17 May 2016 02:19:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 62368160A19; Tue, 17 May 2016 00:19:17 +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 ABD8F160A16 for ; Tue, 17 May 2016 02:19:16 +0200 (CEST) Received: (qmail 55214 invoked by uid 500); 17 May 2016 00:19:15 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 55202 invoked by uid 99); 17 May 2016 00:19:15 -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; Tue, 17 May 2016 00:19:15 +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 ACCF1C6EDF for ; Tue, 17 May 2016 00:19:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.429 X-Spam-Level: * X-Spam-Status: No, score=1.429 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id hkROSZ_91B4s for ; Tue, 17 May 2016 00:19:12 +0000 (UTC) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E4A365FB21 for ; Tue, 17 May 2016 00:19:11 +0000 (UTC) Received: by mail-wm0-f46.google.com with SMTP id a17so4023219wme.0 for ; Mon, 16 May 2016 17:19:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=vqTqICZHjmOCJPZqit3JzYQ8+dz8OlKPtLa+cYJrwiM=; b=Xs/tPmSHNKzNJlHcSrR8uDTz/KmH4DCIkcq52HJNjUWbOlVzZbuLCOJLFh6TDrnocw UU1PYrnladgjl2I0Xu1SR6w8lhNtcDpMXUOOCskSo51NaivgIiDooKMZ778EgCBLraQm t8hqkudyKoxnzOCOkDiQU+5oRInRx9EKnX7hR31Di5+V7NBOdwRhsaSxhb6Dj1QDcU8y vHdhtR81qqNe/mtTS+E0CQBU4jV5r1Mm6xw6DYp/4+jbEJ2pSSxhSHHkoomgjrEHvIs/ xDSgkKTkvcwxTloGk+2sbe+3c2atIzkF1U2w7/1ygyHK74P67aLpNV0vRv1nMEn2xyI9 h1nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=vqTqICZHjmOCJPZqit3JzYQ8+dz8OlKPtLa+cYJrwiM=; b=S30L4lwQ7GGh3jg4+OTibooK7Ygwg6DkTOmpLjEyhmKmdFqC0TozJXdlvAvS+DF7qN SqPu60lm2ZHO8ehwN+1vRu6ZFQAB1JeysnDad9j5d55A5RTwd6Lyxx6Fx18XjjYRsRyJ V2NEiVjOZjPWLRvnJo/OGQE/V1w/+Q+QMHNO9wtn75t9mKI7I6E+f94X1BLfy98LFrTo xAr1uXUW/XGMkbRnCapBu7IiCp22B/rVz14HSNPNRCpAcUNT7sMcz3mLrWf7FpYd6Cuo esmqmsl9OciItSR6I1y7e9iyMkwEwEvDYzpbZ8mYv6MPCPpn7SUjFbBtUL+TNVKEMFxI 35kg== X-Gm-Message-State: AOPr4FXSo7RQDR7c9B/sVItMWx4N1lq2Gipt8wQ/M8TfxLDif3kPzJFEBDlq5da5TWcR7ACK6ooLIGUk85Tw8Q== MIME-Version: 1.0 X-Received: by 10.28.230.69 with SMTP id d66mr20950145wmh.73.1463444350451; Mon, 16 May 2016 17:19:10 -0700 (PDT) Received: by 10.28.170.81 with HTTP; Mon, 16 May 2016 17:19:10 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 May 2016 05:49:10 +0530 Message-ID: Subject: Re: hbase get and mvcc From: Shushant Arora To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a1147c6e2a848a00532feb0da archived-at: Tue, 17 May 2016 00:19:17 -0000 --001a1147c6e2a848a00532feb0da Content-Type: text/plain; charset=UTF-8 thanks! Does puts which fall inside readpoint of ongoing scan/get are preserved in HFile also or only in memstore and it blocks memstore flush until all ongoing scans are completed. On Tue, May 17, 2016 at 5:31 AM, Stack wrote: > On Mon, May 16, 2016 at 4:55 PM, Shushant Arora > > wrote: > > > Hi > > > > Hbase uses MVCC for achieving consistent result for Get operations . > > To achieve MVCC it has to maintain multiple versions of same row/cells . > > How many max version of a row/cell does Hbase keeps at any time to > support > > MVCC. > > > > Since say multiple gets started one after the other and has not completed > > yet and multiple puts are also occuring in between . Thus it maintains > all > > versions whose read point is still in use ? > > > > > Yes. > > All ongoing Gets/Scans are registered on startup with their current > readpoint (see HRegion; see constructor for HRegionScannerImpl). Any Put > that falls inside the readpoint of currently ongoing Gets/Scans will be > preserved while the Get/Scan is ongoing. > > St.Ack > > > > > Thanks! > > > --001a1147c6e2a848a00532feb0da--