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 A3EDC200B83 for ; Sat, 3 Sep 2016 00:09:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A2720160A8C; Fri, 2 Sep 2016 22:09: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 F2F57160ACB for ; Sat, 3 Sep 2016 00:09:21 +0200 (CEST) Received: (qmail 78714 invoked by uid 500); 2 Sep 2016 22:09: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 78634 invoked by uid 99); 2 Sep 2016 22:09:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2016 22:09:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AADA42C1B82 for ; Fri, 2 Sep 2016 22:09:20 +0000 (UTC) Date: Fri, 2 Sep 2016 22:09:20 +0000 (UTC) From: "Matteo Bertozzi (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-16554) Procedure V2 - handle corruption of WAL trailer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 02 Sep 2016 22:09:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-16554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matteo Bertozzi updated HBASE-16554: ------------------------------------ Description: If the last wal was closed cleanly, the global tracker will be the last wal tracker (no rebuild needed) if the last wal does not have a tracker (corrupted/master-killed). on load() we will rebuild the global tracker. To compute quickly which files should be deleted, we also want the tracker of each file. if the wal was closed properly and has a tracker we are good, if not we need to rebuild the tracker for that file. each file tracker contains a bitmap about what is in the wal (the updated bitmap), which is easy to compute just by reading each entry of the wal. and a bitmap that keeps track of the "running procedures" up to that wal (the deleted bitmap). The delete bitmap requires a bit of post read-all-wals work. and it will basically require to AND the deleted bitmap of was:if trailer is corrupted, build tracker for each WAL when loading, then use these trackers to build global tracker. > Procedure V2 - handle corruption of WAL trailer > ----------------------------------------------- > > Key: HBASE-16554 > URL: https://issues.apache.org/jira/browse/HBASE-16554 > Project: HBase > Issue Type: Sub-task > Reporter: Appy > Assignee: Appy > Attachments: tracker-rebuild.patch > > > If the last wal was closed cleanly, the global tracker will be the last wal tracker (no rebuild needed) > if the last wal does not have a tracker (corrupted/master-killed). on load() we will rebuild the global tracker. > To compute quickly which files should be deleted, we also want the tracker of each file. > if the wal was closed properly and has a tracker we are good, if not we need to rebuild the tracker for that file. > each file tracker contains a bitmap about what is in the wal (the updated bitmap), which is easy to compute just by reading each entry of the wal. and a bitmap that keeps track of the "running procedures" up to that wal (the deleted bitmap). The delete bitmap requires a bit of post read-all-wals work. and it will basically require to AND the deleted bitmap of -- This message was sent by Atlassian JIRA (v6.3.4#6332)