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 878C7D2FD for ; Sun, 9 Sep 2012 14:00:16 +0000 (UTC) Received: (qmail 32329 invoked by uid 500); 9 Sep 2012 14:00:16 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 32238 invoked by uid 500); 9 Sep 2012 14:00:16 -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 32229 invoked by uid 99); 9 Sep 2012 14:00:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Sep 2012 14:00:16 +0000 Date: Mon, 10 Sep 2012 01:00:16 +1100 (NCT) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <505614304.55577.1347199216329.JavaMail.jiratomcat@arcas> In-Reply-To: <2104729110.12713.1325811339356.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-2757) Cannot read a local block that's being written to when using the local read short circuit 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-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451600#comment-13451600 ] Hudson commented on HDFS-2757: ------------------------------ Integrated in Hadoop-Mapreduce-trunk #1191 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1191/]) HDFS-2757. Cannot read a local block that's being written to when using the local read short circuit. Contributed by Jean-Daniel Cryans (Revision 1382409) Result = SUCCESS eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1382409 Files : * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java > Cannot read a local block that's being written to when using the local read short circuit > ----------------------------------------------------------------------------------------- > > Key: HDFS-2757 > URL: https://issues.apache.org/jira/browse/HDFS-2757 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 1.0.0 > Reporter: Jean-Daniel Cryans > Assignee: Jean-Daniel Cryans > Fix For: 1.2.0, 2.0.2-alpha > > Attachments: hdfs-2757-b1.txt, HDFS-2757-branch-1.patch, HDFS-2757-branch-1-v2.patch, HDFS-2757-trunk.patch, hdfs-2757.txt > > > When testing the tail'ing of a local file with the read short circuit on, I get: > {noformat} > 2012-01-06 00:17:31,598 WARN org.apache.hadoop.hdfs.DFSClient: BlockReaderLocal requested with incorrect offset: Offset 0 and length 8230400 don't match block blk_-2842916025951313698_454072 ( blockLen 124 ) > 2012-01-06 00:17:31,598 WARN org.apache.hadoop.hdfs.DFSClient: BlockReaderLocal: Removing blk_-2842916025951313698_454072 from cache because local file /export4/jdcryans/dfs/data/blocksBeingWritten/blk_-2842916025951313698 could not be opened. > 2012-01-06 00:17:31,599 INFO org.apache.hadoop.hdfs.DFSClient: Failed to read block blk_-2842916025951313698_454072 on local machine java.io.IOException: Offset 0 and length 8230400 don't match block blk_-2842916025951313698_454072 ( blockLen 124 ) > 2012-01-06 00:17:31,599 INFO org.apache.hadoop.hdfs.DFSClient: Try reading via the datanode on /10.4.13.38:51010 > java.io.EOFException: hdfs://sv4r11s38:9100/hbase-1/.logs/sv4r13s38,62023,1325808100311/sv4r13s38%2C62023%2C1325808100311.1325808100818, entryStart=7190409, pos=8230400, end=8230400, edit=5 > {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