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 41454200BC7 for ; Fri, 25 Nov 2016 15:45:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3FC94160B1C; Fri, 25 Nov 2016 14:45:00 +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 8B7BB160B01 for ; Fri, 25 Nov 2016 15:44:59 +0100 (CET) Received: (qmail 16504 invoked by uid 500); 25 Nov 2016 14:44:58 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 16492 invoked by uid 99); 25 Nov 2016 14:44:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2016 14:44:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6EC942C03E3 for ; Fri, 25 Nov 2016 14:44:58 +0000 (UTC) Date: Fri, 25 Nov 2016 14:44:58 +0000 (UTC) From: "Duo Zhang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-17167) Pass mvcc to client when scan MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 25 Nov 2016 14:45:00 -0000 [ https://issues.apache.org/jira/browse/HBASE-17167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15696014#comment-15696014 ] Duo Zhang commented on HBASE-17167: ----------------------------------- And there is still a problem that we may read inconsistent data when restart a scanner. When compaction, we will get a smallestReadPoint. For all cells whose mvcc is greater than this value, we will never remove it, and not use it to delete any other values if it is a delete marker either. If a region is moved and start a compaction before we restart the scanner, we may have a smallestReadPoint which is greater than the mvcc of our scanner, if there is a delete marker in the range between the smallestReadPoint and the mvcc of our scanner, then we may lose some cells which should be returned to us. I think this could be addressed in another issue(Yes yes, I do not good way to fix it right now!). Thanks. > Pass mvcc to client when scan > ----------------------------- > > Key: HBASE-17167 > URL: https://issues.apache.org/jira/browse/HBASE-17167 > Project: HBase > Issue Type: Sub-task > Components: Client, scan > Reporter: Duo Zhang > Assignee: Duo Zhang > Fix For: 2.0.0, 1.4.0 > > Attachments: HBASE-17167.patch > > > For the current implementation, if we use batch or allowPartial when scan, then the row level atomic can not be guaranteed if we need to restart a scan in the middle of a record due to region move or something else. > We can return the mvcc used to open scanner to client and client could use this mvcc to restart a scan to get row level atomic. -- This message was sent by Atlassian JIRA (v6.3.4#6332)