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 437A410B31 for ; Thu, 8 Aug 2013 23:59:49 +0000 (UTC) Received: (qmail 42447 invoked by uid 500); 8 Aug 2013 23:59:48 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 42415 invoked by uid 500); 8 Aug 2013 23:59:48 -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 42372 invoked by uid 99); 8 Aug 2013 23:59:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Aug 2013 23:59:48 +0000 Date: Thu, 8 Aug 2013 23:59:48 +0000 (UTC) From: "Jimmy Xiang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-9167) ServerCallable retries just once if timeout is not integer.max 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-9167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13734213#comment-13734213 ] Jimmy Xiang commented on HBASE-9167: ------------------------------------ We can backport HBASE-7756 and other changes from trunk. > ServerCallable retries just once if timeout is not integer.max > -------------------------------------------------------------- > > Key: HBASE-9167 > URL: https://issues.apache.org/jira/browse/HBASE-9167 > Project: HBase > Issue Type: Bug > Components: Client > Affects Versions: 0.94.10 > Reporter: Jimmy Xiang > Assignee: Jimmy Xiang > > If callTimeout is not integer.max and throwable is not SocketTimeoutException, we set the callTimeout to a negative value since endTime is not set yet. Therefore, the next call will always throw SocketTimeoutException. > {noformat} > if (this.callTimeout != HConstants.DEFAULT_HBASE_CLIENT_OPERATION_TIMEOUT) > if (throwable instanceof SocketTimeoutException > || (this.endTime - this.startTime > this.callTimeout)) { > throw (SocketTimeoutException) (SocketTimeoutException) new SocketTimeoutException( > "Call to access row '" + Bytes.toString(row) + "' on table '" > + Bytes.toString(tableName) > + "' failed on socket timeout exception: " + throwable) > .initCause(throwable); > } else { > ===> this.callTimeout = ((int) (this.endTime - this.startTime)); > } > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira