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 061BB200B8C for ; Mon, 12 Sep 2016 09:20:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 04BAF160AC8; Mon, 12 Sep 2016 07:20:22 +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 70EFB160AB8 for ; Mon, 12 Sep 2016 09:20:21 +0200 (CEST) Received: (qmail 82551 invoked by uid 500); 12 Sep 2016 07:20:20 -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 82531 invoked by uid 99); 12 Sep 2016 07:20:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2016 07:20:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 74D622C1B75 for ; Mon, 12 Sep 2016 07:20:20 +0000 (UTC) Date: Mon, 12 Sep 2016 07:20:20 +0000 (UTC) From: "Jingcheng Du (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16578) Mob data loss after mob compaction and normal compcation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 12 Sep 2016 07:20:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-16578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15483333#comment-15483333 ] Jingcheng Du commented on HBASE-16578: -------------------------------------- Thanks [~huaxiang]. Good finding! The scanners in MOB rely on the maxSeqId in StoreFiles. I debug this issue, and find that the maxSeqId is not loaded by {{StoreFile}} in {{StoreFileScanner.getScannersForStoreFiles()}} in {{Compactor.compact()}}. Would you like to give a patch to fix this? Override this compact method in {{DefaultMobCompactor}} or create readers of the StoreFile before they are sorted in {{StoreFileScanner.getScannersForStoreFiles()}}? Thanks. > Mob data loss after mob compaction and normal compcation > -------------------------------------------------------- > > Key: HBASE-16578 > URL: https://issues.apache.org/jira/browse/HBASE-16578 > Project: HBase > Issue Type: Bug > Components: mob > Affects Versions: 2.0.0 > Reporter: huaxiang sun > Assignee: huaxiang sun > Attachments: TestMobCompaction.java, TestMobCompaction.java > > > I have a unittest case, which could explore the mob data loss issue. The root cause is that with the following line: > https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/mob/compactions/PartitionedMobCompactor.java#L625 > It will make the old mob reference cell win during compaction. -- This message was sent by Atlassian JIRA (v6.3.4#6332)