Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0799B9C0F for ; Tue, 7 Feb 2012 20:37:43 +0000 (UTC) Received: (qmail 35282 invoked by uid 500); 7 Feb 2012 20:37:42 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 35190 invoked by uid 500); 7 Feb 2012 20:37:42 -0000 Mailing-List: contact commits-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 commits@hbase.apache.org Received: (qmail 35183 invoked by uid 99); 7 Feb 2012 20:37:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2012 20:37:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2012 20:37:40 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id E892C238890D for ; Tue, 7 Feb 2012 20:37:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1241606 - /hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java Date: Tue, 07 Feb 2012 20:37:20 -0000 To: commits@hbase.apache.org From: mbautin@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120207203720.E892C238890D@eris.apache.org> Author: mbautin Date: Tue Feb 7 20:37:20 2012 New Revision: 1241606 URL: http://svn.apache.org/viewvc?rev=1241606&view=rev Log: [master] Asynchronously table creation shall ignore the socket time out exception Summary: HBaseAdmin creates table in an asynchronous way and then verify all the regions come online. However, the asynchronous creation may get socket time out exception, which is sopposed to be ignored. The asynchronous creation would not except the master will return in limited time period. Marked as master since this problem is very different in the apache trunk. The fix is totally different. Test Plan: Tested with ods client Reviewers: kannan Reviewed By: kannan CC: hbase-eng@lists Differential Revision: https://phabricator.fb.com/D400671 Modified: hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java Modified: hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java?rev=1241606&r1=1241605&r2=1241606&view=diff ============================================================================== --- hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java (original) +++ hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java Tue Feb 7 20:37:20 2012 @@ -19,16 +19,17 @@ */ package org.apache.hadoop.hbase.client; -import java.io.InterruptedIOException; import java.io.IOException; -import java.util.concurrent.atomic.AtomicInteger; -import java.util.Arrays; +import java.io.InterruptedIOException; +import java.net.SocketTimeoutException; import java.util.ArrayList; +import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.NavigableMap; import java.util.Set; +import java.util.concurrent.atomic.AtomicInteger; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -325,6 +326,8 @@ public class HBaseAdmin { this.master.createTable(desc, splitKeys); } catch (RemoteException e) { throw RemoteExceptionHandler.decodeRemoteException(e); + } catch (SocketTimeoutException ste) { + LOG.warn("Creating " + desc.getNameAsString() + " took too long", ste); } }