Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3420A679D for ; Tue, 12 Jul 2011 20:13:23 +0000 (UTC) Received: (qmail 30295 invoked by uid 500); 12 Jul 2011 20:13:23 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 30221 invoked by uid 500); 12 Jul 2011 20:13:22 -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 30212 invoked by uid 99); 12 Jul 2011 20:13:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 20:13:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2011 20:13:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0C17D4C9A3 for ; Tue, 12 Jul 2011 20:13:00 +0000 (UTC) Date: Tue, 12 Jul 2011 20:13:00 +0000 (UTC) From: "Ita Pai (JIRA)" To: issues@hbase.apache.org Message-ID: <1476084378.7344.1310501580046.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1117294639.28818.1305845387414.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-3904) HConnection.isTableAvailable returns true even with not all regions available. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-3904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ita Pai updated HBASE-3904: --------------------------- Attachment: 3904_v6.patch The calls in the try block don't reliably throw RegionException, so most of the time after several retries, it would silently returns. Attached is another version that fixed this problem, along with some minor changes to the logic. TestAdmin passed after applying this patch. > HConnection.isTableAvailable returns true even with not all regions available. > ------------------------------------------------------------------------------ > > Key: HBASE-3904 > URL: https://issues.apache.org/jira/browse/HBASE-3904 > Project: HBase > Issue Type: Bug > Components: client > Reporter: Vidhyashankar Venkataraman > Assignee: Ted Yu > Priority: Minor > Attachments: 3904-v3.txt, 3904-v4.txt, 3904-v5.txt, 3904.txt, 3904_v6.patch > > > This function as per the java doc is supposed to return true iff "all the regions in the table are available". But if the table is still being created this function may return inconsistent results (For example, when a table with a large number of split keys is created). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira