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 7502F9783 for ; Wed, 14 Dec 2011 06:11:20 +0000 (UTC) Received: (qmail 89005 invoked by uid 500); 14 Dec 2011 06:11:18 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 88975 invoked by uid 500); 14 Dec 2011 06:11:18 -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 88966 invoked by uid 99); 14 Dec 2011 06:11:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 06:11:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=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.161.169 as permitted sender) Received: from [209.85.161.169] (HELO mail-gx0-f169.google.com) (209.85.161.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 06:11:09 +0000 Received: by ggni2 with SMTP id i2so545910ggn.14 for ; Tue, 13 Dec 2011 22:10:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=1Shm7jwULcHql6uZqD2p3JL10ljY98+Gt4rDXYJye9s=; b=duo/F9H+hJ61kS9y/H8qkbBTYr0J4bvyG/C0spjFgErDmttoz4ZaQkUk0Wqzp+IDqU se1zuBxCI5CRxGrGTyfWhHOdoFGiUP/718GfN98I7ytE2JGX6qD8AJDXZiNm7GyP9raa WcRgdNPExfYACfAcBmGbgMjbDpJkPN7V85YMI= MIME-Version: 1.0 Received: by 10.182.13.105 with SMTP id g9mr5242312obc.63.1323843049330; Tue, 13 Dec 2011 22:10:49 -0800 (PST) Sender: saint.ack@gmail.com Received: by 10.182.12.106 with HTTP; Tue, 13 Dec 2011 22:10:49 -0800 (PST) In-Reply-To: References: Date: Tue, 13 Dec 2011 22:10:49 -0800 X-Google-Sender-Auth: 3fbSMuGQHRy1b9NseZ0uPl7hGjA Message-ID: Subject: Re: NPE while obtaining row lock From: Stack To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Dec 12, 2011 at 11:52 PM, Yves Langisch wrote: > Hi, > > from time to time I get a NPE on my regionserver. Apparently it's occurri= ng while obtaining a row lock: > > --- > 2011-12-13 02:00:19,582 DEBUG org.apache.hadoop.hbase.io.hfile.LruBlockCa= che: Block cache LRU eviction completed; freed=3D39.59 MB, total=3D296.26 M= B, single=3D164.82 MB, multi=3D167.62 MB, memory=3D42.16 KB > 2011-12-13 02:00:20,365 ERROR org.apache.hadoop.hbase.regionserver.HRegio= nServer: Error obtaining row lock (fsOk: true) > java.lang.NullPointerException > =A0 =A0 =A0 =A0at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHa= shMap.java:881) Any chance you are passing a null lockid Yves? See below: 2005 protected long addRowLock(Integer r, HRegion region) 2006 throws LeaseStillHeldException { 2007 long lockId =3D -1L; 2008 lockId =3D rand.nextLong(); 2009 String lockName =3D String.valueOf(lockId); 2010 rowlocks.put(lockName, r); 2011 this.leases.createLease(lockName, new RowLockListener(lockName, region)); 2012 return lockId; 2013 } St.Ack