You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Jinghui Wang (JIRA)" <ji...@apache.org> on 2014/06/20 20:05:26 UTC

[jira] [Commented] (HDFS-6579) TestSocketIOWithTimeout#testSocketIOWithTimeout fails on Power PC

    [ https://issues.apache.org/jira/browse/HDFS-6579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14039112#comment-14039112 ] 

Jinghui Wang commented on HDFS-6579:
------------------------------------

The attached patch ignores the small block of code to see if the writer is closed similar to how the test is dealt with for Windows.

> TestSocketIOWithTimeout#testSocketIOWithTimeout fails on Power PC 
> ------------------------------------------------------------------
>
>                 Key: HDFS-6579
>                 URL: https://issues.apache.org/jira/browse/HDFS-6579
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.1.0-beta, 2.0.4-alpha, 2.2.0, 2.3.0, 2.4.0
>            Reporter: Jinghui Wang
>             Fix For: 2.4.1
>
>         Attachments: HDFS-6579.patch
>
>
> SocketOutputStream closes its writer if it's partial written. But on PPC, after writing for some time, buf.capacity still equals buf.remaining. The reason might be what's written on PPC is buffered,so the buf.remaining will not change till a flush.



--
This message was sent by Atlassian JIRA
(v6.2#6252)