Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E85D9ED6 for ; Mon, 2 Jul 2012 20:40:02 +0000 (UTC) Received: (qmail 26320 invoked by uid 500); 2 Jul 2012 20:40:00 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 26285 invoked by uid 500); 2 Jul 2012 20:40:00 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 26277 invoked by uid 99); 2 Jul 2012 20:40:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2012 20:40:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of saint.ack@gmail.com designates 209.85.213.169 as permitted sender) Received: from [209.85.213.169] (HELO mail-yx0-f169.google.com) (209.85.213.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2012 20:39:53 +0000 Received: by yenr5 with SMTP id r5so5591944yen.14 for ; Mon, 02 Jul 2012 13:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=QuQlEQLFrcqAaOBcQyoIBuWgvhFCtlFU2NXEujMg3QM=; b=jlCMvC9rNniNMYCyQaMwsi54TZDYwKpKbTE0mCTOLTkLxSW2yf8tGhvLB1mpz/PlCR +0GyjyNEV2+pV8NSS7gMhgSkCh2oABP2mIOJ1R65NWfrSji5ResNLD6OGtbHcFup4Yzz fn9dSJbigzTu98q6JmzqBQB+evnSAwUFR7QOgv8uYWPCSVGWavctrwPEOOtzxEE3tTJ2 qFf4/3L10FXXQd6/V46IdTfyp5pt7pVpItSU/WyCQFXyRgGnQZYDScdppUdYjMMWZfaA Jgz0z5yTG/AmlIYoMyIGRYhUFIpUACB7dyGNtWQOtRkTZxnOK27IT5AdYh4tqyMThPtG bNMA== MIME-Version: 1.0 Received: by 10.60.3.137 with SMTP id c9mr15342955oec.21.1341261572828; Mon, 02 Jul 2012 13:39:32 -0700 (PDT) Sender: saint.ack@gmail.com Received: by 10.182.62.106 with HTTP; Mon, 2 Jul 2012 13:39:32 -0700 (PDT) In-Reply-To: <1E6B8C7E-80BF-4758-BF30-67EE8EAB3934@gmail.com> References: <1E6B8C7E-80BF-4758-BF30-67EE8EAB3934@gmail.com> Date: Mon, 2 Jul 2012 22:39:32 +0200 X-Google-Sender-Auth: A-gnPvfx3I18izwH4DtTHrvYPAY Message-ID: Subject: Re: WAL corruption From: Stack To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Jul 2, 2012 at 7:37 PM, Bryan Keller wrote: > During an upgrade of my cluster to 0.90 to 0.92 over the weekend, the WAL= (files in the /hbase/.logs directory) was corrupted and it prevented HBase= from starting up. The exact exception was "java.io.IOException: Could not = obtain the last block locations" on the WAL files. > Next time, run hdfs fsck and see what it says about your WALs. > I was able to recover by deleting the /hbase/.logs directory. My question= is, if HBase had no pending updates, i.e. nothing writing to it, is there = any risk of data loss by deleting the WAL directory? For example, does reba= lancing, flushing, or compaction use the WAL or is the WAL used only for in= serts/updates/deletes? Only by inserts, etc. You could have lost data if edits were in memory on regionserver only and they had not yet been flushed. St.Ack