Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8B4E3F2C2 for ; Fri, 5 Apr 2013 20:51:18 +0000 (UTC) Received: (qmail 45172 invoked by uid 500); 5 Apr 2013 20:51:17 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 45097 invoked by uid 500); 5 Apr 2013 20:51:17 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 45005 invoked by uid 99); 5 Apr 2013 20:51:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 20:51:17 +0000 Date: Fri, 5 Apr 2013 20:51:17 +0000 (UTC) From: "Konstantin Boudnik (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-4646) createNNProxyWithClientProtocol ignores configured timeout value 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/HDFS-4646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Konstantin Boudnik updated HDFS-4646: ------------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) I have committed the patch to trunk, branch-2, and branch-2.0.4-alpha. Thanks you Jagane! > createNNProxyWithClientProtocol ignores configured timeout value > ---------------------------------------------------------------- > > Key: HDFS-4646 > URL: https://issues.apache.org/jira/browse/HDFS-4646 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 3.0.0, 2.0.3-alpha, 2.0.4-alpha > Environment: Linux > Reporter: Jagane Sundar > Priority: Minor > Fix For: 3.0.0, 2.0.5-beta, 2.0.4-alpha > > Attachments: HDFS-4646.001.patch, HDFS-4646.patch > > > The Client RPC I/O timeout mechanism appears to be configured by two core-site.xml paramters: > 1. A boolean ipc.client.ping > 2. A numeric value ipc.ping.interval > If ipc.client.ping is true, then we send a RPC ping every ipc.ping.interval milliseconds > If ipc.client.ping is false, then ipc.ping.interval turns into the socket timeout value. > The bug here is that while creating a Non HA proxy, the configured timeout value is ignored, and 0 is passed in. 0 is taken to mean 'wait forever' and the client RPC socket never times out. > Note that this bug is reproducible only in the case where the NN machine dies, i.e. the TCP stack with the NN IP address stops responding completely. The code does not take this path when you do a 'kill -9' of the NN process, since there is a TCP stack that is alive and sends out a TCP RST to the client, and that results in a socket error (not a timeout). > The fix is to pass in the correct configured value for timeout by calling Client.getTimeout(conf) instead of passing in 0. -- 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