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 B76C7D9B6 for ; Mon, 23 Jul 2012 22:55:26 +0000 (UTC) Received: (qmail 1889 invoked by uid 500); 23 Jul 2012 22:55:24 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 1800 invoked by uid 500); 23 Jul 2012 22:55:24 -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 1791 invoked by uid 99); 23 Jul 2012 22:55:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 22:55:24 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of eclark@stumbleupon.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-wg0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 22:55:18 +0000 Received: by wgbed3 with SMTP id ed3so4713784wgb.20 for ; Mon, 23 Jul 2012 15:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stumbleupon.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=17XbCJZUlbXnacqKwlkUtn4vjjDuO23TYnjs5wUxwsc=; b=FIv24vSBksSN4TTnEp6n0pBSEhtUs1HStonB9wMYhxbuMW/PFhWSSEBniIh0i65mOT xeXQqn8rfENyEiVYN7Ls47tU+0lKoN1JsvWQW2ZgUVArrHZB6A4yTZfi8auuYoFkDLkr r6lDLo/fjP7j5xG4QBNiTAAikq9wdokwVR2yY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=17XbCJZUlbXnacqKwlkUtn4vjjDuO23TYnjs5wUxwsc=; b=LDpmMxELMkXU0msSWU1H3LYh5McnDRsio41PK2Mgtlrit2YHSu411JKOika8Wi1FQ7 HP8g/FO3KkdYJTfdgM3ZOEqN8s9DnsjEOR8jSdkL1wRbQTnabhQMTawM9OsPxe/vez5a fV8N6iq+p25bv2R03SQt0KSqOCv/mSGk/eY68EZDY3YK2Ty2YS7B4BZp67S1MPyTv4MU 03V8KwqLHrDdlMcnueA0bbefa0G3mZYvrftuhZTDaGMZ3oFVge2CQ28Wpx5HxCmdtK0V 0JBeD0b9r7NVUBN0tA3mT9LvYRUOHb7msc1DT5gR1yQzwAKzCkqPawj2D8vPWQ7nbcck nadg== MIME-Version: 1.0 Received: by 10.180.19.162 with SMTP id g2mr1335527wie.22.1343084098084; Mon, 23 Jul 2012 15:54:58 -0700 (PDT) Received: by 10.216.211.86 with HTTP; Mon, 23 Jul 2012 15:54:58 -0700 (PDT) In-Reply-To: References: Date: Mon, 23 Jul 2012 15:54:58 -0700 Message-ID: Subject: Re: Insert blocked From: Elliott Clark To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=bcaec53d588791e0a904c58722a7 X-Gm-Message-State: ALoCoQlNpnG1My16axNrd2lZcrbkp7wIkOxynzRMrbEEWc7ptaaAEjq8QSkyIN/g7ETn327CoiEW --bcaec53d588791e0a904c58722a7 Content-Type: text/plain; charset=ISO-8859-1 HTable is not thread safe[1]. It's better to use HTablePool if you want to share things across multiple threads.[2] 1 http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HTable.html 2 http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HTablePool.html On Mon, Jul 23, 2012 at 3:48 PM, Mohit Anchlia wrote: > I am writing a stress tool to test my specific use case. In my current > implementation HTable is a global static variable that I initialize just > once and use it accross multiple threads. Is this ok? > > My row key consists of (timestamp - (timestamp % 1000)) and cols are > counters. What I am seeing is that when I run my test after first row is > created the application just hangs. I just wanted to check if there are > obvious things that I should watch out for. > > I am currently testing few threads in eclipse, but I'll still try and > generate stackTrace > --bcaec53d588791e0a904c58722a7--