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 B253917C69 for ; Thu, 19 Mar 2015 14:30:38 +0000 (UTC) Received: (qmail 69968 invoked by uid 500); 19 Mar 2015 14:30:38 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 69913 invoked by uid 500); 19 Mar 2015 14:30:38 -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 69900 invoked by uid 99); 19 Mar 2015 14:30:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2015 14:30:38 +0000 Date: Thu, 19 Mar 2015 14:30:38 +0000 (UTC) From: "Nicolas Liochon (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-13286) Minimum timeout for a rpc call could be 1 ms instead of 2 seconds 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-13286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nicolas Liochon updated HBASE-13286: ------------------------------------ Status: Patch Available (was: Open) > Minimum timeout for a rpc call could be 1 ms instead of 2 seconds > ----------------------------------------------------------------- > > Key: HBASE-13286 > URL: https://issues.apache.org/jira/browse/HBASE-13286 > Project: HBase > Issue Type: Improvement > Components: Client > Affects Versions: 0.98.12, 1.0.0 > Reporter: Nicolas Liochon > Assignee: Nicolas Liochon > Priority: Minor > Fix For: 1.1.0 > > Attachments: 13286.patch > > > There is a check in the client to be sure that we don't use a timeout of zero (i.e. infinite). This includes setting the minimal time out for a rpc timeout to 2 seconds. However, it makes sense for some calls (typically gets going to the cache) to have much lower timeouts. So it's better to do the check vs. zero but with a minimal timeout of 0. > I fixed a typo & a wrong comment in this patch as well. I don't understand this code: > {code} > // t could be a RemoteException so go around again. > translateException(t); // We don't use the result? > {code} > but may be it's good. -- This message was sent by Atlassian JIRA (v6.3.4#6332)