Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 42F24979D for ; Wed, 2 Nov 2011 17:31:06 +0000 (UTC) Received: (qmail 60858 invoked by uid 500); 2 Nov 2011 17:31:05 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 60785 invoked by uid 500); 2 Nov 2011 17:31:05 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 60777 invoked by uid 99); 2 Nov 2011 17:31:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 17:31:05 +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 todd@cloudera.com designates 209.85.161.41 as permitted sender) Received: from [209.85.161.41] (HELO mail-fx0-f41.google.com) (209.85.161.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2011 17:31:00 +0000 Received: by faaf16 with SMTP id f16so953088faa.14 for ; Wed, 02 Nov 2011 10:30:39 -0700 (PDT) Received: by 10.223.91.82 with SMTP id l18mr6915934fam.30.1320255039318; Wed, 02 Nov 2011 10:30:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.22.225 with HTTP; Wed, 2 Nov 2011 10:21:49 -0700 (PDT) In-Reply-To: References: From: Todd Lipcon Date: Wed, 2 Nov 2011 10:21:49 -0700 Message-ID: Subject: Re: client thread waiting infinitely To: dev@hbase.apache.org, ramakrishnas@huawei.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I've seen TreeMap infinite loop when it's concurrently modified without locking. My bet is there's a threading bug. -Todd On Wed, Nov 2, 2011 at 7:12 AM, Ramkrishna S Vasudevan wrote: > I said the Map could be corrupted because i dint view it as a JVM bug :). > > When i went through the code found like synchronization was taken care. = =A0I > will dig in more into this. Thanks Stack. > > Regards > Ram > > > -----Original Message----- > From: saint.ack@gmail.com [mailto:saint.ack@gmail.com] On Behalf Of Stack > Sent: Wednesday, November 02, 2011 7:30 PM > To: dev@hbase.apache.org; ramakrishnas@huawei.com > Subject: Re: client thread waiting infinitely > > On Tue, Nov 1, 2011 at 11:23 PM, Ramkrishna S Vasudevan > wrote: >> JVM version is 1.6. =A0There was no profiling done. >> In the TreeMap remove method we try to compare and then remove. =A0So ma= y be >> its not able to find the intended key as the map is corrupted and hence > the >> comparator is stuck and runs infinitely. >> > > Is it a recent 1.6 JVM? =A0Perhaps a bug in JVM? > > Otherwise, can you reproduce? > > Why you think the Map 'corrupt'? > > St.Ack > > --=20 Todd Lipcon Software Engineer, Cloudera