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 902FA200B32 for ; Thu, 23 Jun 2016 22:50:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8ED6B160A68; Thu, 23 Jun 2016 20:50:20 +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 06A28160A59 for ; Thu, 23 Jun 2016 22:50:19 +0200 (CEST) Received: (qmail 89487 invoked by uid 500); 23 Jun 2016 20:50:17 -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 89212 invoked by uid 99); 23 Jun 2016 20:50:17 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2016 20:50:17 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 954162C1F70 for ; Thu, 23 Jun 2016 20:50:17 +0000 (UTC) Date: Thu, 23 Jun 2016 20:50:17 +0000 (UTC) From: "Matteo Bertozzi (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-16094) Procedure v2 - Improve cleaning up of proc wals MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 23 Jun 2016 20:50:20 -0000 [ https://issues.apache.org/jira/browse/HBASE-16094?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Matteo Bertozzi updated HBASE-16094: ------------------------------------ Fix Version/s: 2.0.0 > Procedure v2 - Improve cleaning up of proc wals > ----------------------------------------------- > > Key: HBASE-16094 > URL: https://issues.apache.org/jira/browse/HBASE-16094 > Project: HBase > Issue Type: Sub-task > Components: proc-v2 > Reporter: Appy > Fix For: 2.0.0 > > > Avoid accumulating too many wals. > We remove logs in 3 cases: > - No procedures are running. We can remove all the logs. > - All procedures are updated/written in the last log. We can remove all = the logs, aside the active one.=09 > - Remove log if does not contains =E2=80=9Cactive=E2=80=9D procIds > https://github.com/apache/hbase/blob/master/hbase-procedure/src/main/java= /org/apache/hadoop/hbase/procedure2/store/wal/WALProcedureStore.java#L865 > Remove log if does not contains =E2=80=9Cactive=E2=80=9D procIds requires= to be improved, since those procedures can be in earlier wals. An example = that can be unit-tested is: > Insert 10 proc, Roll The Wal, Update the 10 proc > At the end of the 10 updates the removeInactiveLogs() should be able to r= emove the first WAL. We can probably do a diff on the updated tracker bitma= p between wals. -- This message was sent by Atlassian JIRA (v6.3.4#6332)