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 4FC511007 for ; Wed, 20 Apr 2011 18:14:44 +0000 (UTC) Received: (qmail 45410 invoked by uid 500); 20 Apr 2011 18:14:44 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 45388 invoked by uid 500); 20 Apr 2011 18:14:44 -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 45366 invoked by uid 99); 20 Apr 2011 18:14:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 18:14:44 +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; Wed, 20 Apr 2011 18:14:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BF1B8ABF25 for ; Wed, 20 Apr 2011 18:14:05 +0000 (UTC) Date: Wed, 20 Apr 2011 18:14:05 +0000 (UTC) From: "John Meagher (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <873378946.70591.1303323245779.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-148) timeout when writing dfs file causes infinite loop when closing the file 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-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022266#comment-13022266 ] John Meagher commented on HDFS-148: ----------------------------------- It looks like this was fixed for HDFS-278 > timeout when writing dfs file causes infinite loop when closing the file > ------------------------------------------------------------------------ > > Key: HDFS-148 > URL: https://issues.apache.org/jira/browse/HDFS-148 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 0.20.2 > Reporter: Nigel Daley > Assignee: Sameer Paranjpye > Priority: Critical > > If, when writing to a dfs file, I get a timeout exception: > 06/11/29 11:16:05 WARN fs.DFSClient: Error while writing. > java.net.SocketTimeoutException: timed out waiting for rpc response > at org.apache.hadoop.ipc.Client.call(Client.java:469) > at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:164) > at org.apache.hadoop.dfs.$Proxy0.reportWrittenBlock(Unknown Source) > at org.apache.hadoop.dfs.DFSClient$DFSOutputStream.internalClose(DFSClient.java:1220) > at org.apache.hadoop.dfs.DFSClient$DFSOutputStream.endBlock(DFSClient.java:1175) > at org.apache.hadoop.dfs.DFSClient$DFSOutputStream.flush(DFSClient.java:1121) > at org.apache.hadoop.dfs.DFSClient$DFSOutputStream.write(DFSClient.java:1103) > at org.apache.hadoop.examples.NNBench2.createWrite(NNBench2.java:107) > at org.apache.hadoop.examples.NNBench2.main(NNBench2.java:247) > then the close() operation on the file appears to go into an infinite loop of retrying: > 06/11/29 13:11:19 INFO fs.DFSClient: Could not complete file, retrying... > 06/11/29 13:11:20 INFO fs.DFSClient: Could not complete file, retrying... > 06/11/29 13:11:21 INFO fs.DFSClient: Could not complete file, retrying... > 06/11/29 13:11:23 INFO fs.DFSClient: Could not complete file, retrying... > 06/11/29 13:11:24 INFO fs.DFSClient: Could not complete file, retrying... > ... -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira