Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 56094 invoked from network); 4 Dec 2010 07:28:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Dec 2010 07:28:33 -0000 Received: (qmail 22614 invoked by uid 500); 4 Dec 2010 07:28:33 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 22509 invoked by uid 500); 4 Dec 2010 07:28:32 -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 22501 invoked by uid 99); 4 Dec 2010 07:28:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Dec 2010 07:28:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Dec 2010 07:28:31 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB47SBRZ010390 for ; Sat, 4 Dec 2010 07:28:11 GMT Message-ID: <23762382.108711291447691039.JavaMail.jira@thor> Date: Sat, 4 Dec 2010 02:28:11 -0500 (EST) From: "Konstantin Boudnik (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-1527) SocketOutputStream.transferToFully fails for blocks >= 2GB on 32 bit JVM In-Reply-To: <1650813.105481291425491413.JavaMail.jira@thor> 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-1527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12966799#action_12966799 ] Konstantin Boudnik commented on HDFS-1527: ------------------------------------------ This line needs to go to for it become unused import {code} import static org.junit.Assume.assumeTrue; {code} Rest looks ok to me. Have you ran the rest of HDFS tests with this patch? > SocketOutputStream.transferToFully fails for blocks >= 2GB on 32 bit JVM > ------------------------------------------------------------------------ > > Key: HDFS-1527 > URL: https://issues.apache.org/jira/browse/HDFS-1527 > Project: Hadoop HDFS > Issue Type: Bug > Components: data-node > Affects Versions: 0.23.0 > Environment: 32 bit JVM > Reporter: Patrick Kling > Assignee: Patrick Kling > Fix For: 0.23.0 > > Attachments: HDFS-1527.patch > > > On 32 bit JVM, SocketOutputStream.transferToFully() fails if the block size is >= 2GB. We should fall back to a normal transfer in this case. > {code} > 2010-12-02 19:04:23,490 ERROR datanode.DataNode (BlockSender.java:sendChunks(399)) - BlockSender.sendChunks() exception: java.io.IOException: Value too large > for defined data type > at sun.nio.ch.FileChannelImpl.transferTo0(Native Method) > at sun.nio.ch.FileChannelImpl.transferToDirectly(FileChannelImpl.java:418) > at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:519) > at org.apache.hadoop.net.SocketOutputStream.transferToFully(SocketOutputStream.java:204) > at org.apache.hadoop.hdfs.server.datanode.BlockSender.sendChunks(BlockSender.java:386) > at org.apache.hadoop.hdfs.server.datanode.BlockSender.sendBlock(BlockSender.java:475) > at org.apache.hadoop.hdfs.server.datanode.DataXceiver.opReadBlock(DataXceiver.java:196) > at org.apache.hadoop.hdfs.protocol.DataTransferProtocol$Receiver.opReadBlock(DataTransferProtocol.java:356) > at org.apache.hadoop.hdfs.protocol.DataTransferProtocol$Receiver.processOp(DataTransferProtocol.java:328) > at org.apache.hadoop.hdfs.server.datanode.DataXceiver.run(DataXceiver.java:130) > at java.lang.Thread.run(Thread.java:619) > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.