From issues-return-336657-archive-asf-public=cust-asf.ponee.io@hbase.apache.org Mon Mar 5 06:24:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9B12B180649 for ; Mon, 5 Mar 2018 06:24:05 +0100 (CET) Received: (qmail 37820 invoked by uid 500); 5 Mar 2018 05:24:04 -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 37808 invoked by uid 99); 5 Mar 2018 05:24:04 -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; Mon, 05 Mar 2018 05:24:04 +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 7BC99C08A0 for ; Mon, 5 Mar 2018 05:24:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id W4E8JIEtzoV7 for ; Mon, 5 Mar 2018 05:24:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2A14A5FB2E for ; Mon, 5 Mar 2018 05:24:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 34CEDE00C7 for ; Mon, 5 Mar 2018 05:24:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1AB6121260 for ; Mon, 5 Mar 2018 05:24:00 +0000 (UTC) Date: Mon, 5 Mar 2018 05:24:00 +0000 (UTC) From: "Toshihiro Suzuki (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-19893) restore_snapshot is broken in master branch when region splits MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-19893?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Toshihiro Suzuki updated HBASE-19893: ------------------------------------- Attachment: HBASE-19893.master.002.patch > restore_snapshot is broken in master branch when region splits > -------------------------------------------------------------- > > Key: HBASE-19893 > URL: https://issues.apache.org/jira/browse/HBASE-19893 > Project: HBase > Issue Type: Bug > Components: snapshots > Reporter: Toshihiro Suzuki > Assignee: Toshihiro Suzuki > Priority: Critical > Attachments: HBASE-19893.master.001.patch, HBASE-19893.master.002= .patch > > > When I was investigating=C2=A0HBASE-19850, I found=C2=A0restore_snapshot= =C2=A0didn't work in master branch. > =C2=A0 > Steps to reproduce are as follows: > 1. Create a table > {code:java} > create "test", "cf" > {code} > 2. Load data (2000 rows) to the table > {code:java} > (0...2000).each{|i| put "test", "row#{i}", "cf:col", "val"} > {code} > 3. Split the table > {code:java} > split "test" > {code} > 4. Take a snapshot > {code:java} > snapshot "test", "snap" > {code} > 5. Load more data (2000 rows) to the table and split the table agin > {code:java} > (2000...4000).each{|i| put "test", "row#{i}", "cf:col", "val"} > split "test" > {code} > 6. Restore the table from the snapshot=C2=A0 > {code:java} > disable "test" > restore_snapshot "snap" > enable "test" > {code} > 7. Scan the table > {code:java} > scan "test" > {code} > However, this scan returns only 244 rows (it should return 2000 rows) lik= e the following: > {code:java} > hbase(main):038:0> scan "test" > ROW COLUMN+CELL > row78 column=3Dcf:col, timestamp=3D1517298307049, value=3Dval > .... > row999 column=3Dcf:col, timestamp=3D1517298307608, value=3Dval > 244 row(s) > Took 0.1500 seconds > {code} > =C2=A0 > Also, the restored table should have 2 online regions but it has 3 online= regions. > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)