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

Hudson commented on HDFS-7291:
------------------------------

SUCCESS: Integrated in Hadoop-Hdfs-trunk #1916 (See 
[https://builds.apache.org/job/Hadoop-Hdfs-trunk/1916/])
HDFS-7291. Persist in-memory replicas with appropriate unbuffered copy API on 
POSIX and Windows. Contributed by Xiaoyu Yao. (cnauroth: rev 
c6f04f391b54e57467b3ae5d0a95bd96e7feaa82)
* 
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIO.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* 
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/nativeio/TestNativeIO.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/Storage.java
* 
hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/nativeio/NativeIO.c


> Persist in-memory replicas with appropriate unbuffered copy API on POSIX and 
> Windows
> ------------------------------------------------------------------------------------
>
>                 Key: HDFS-7291
>                 URL: https://issues.apache.org/jira/browse/HDFS-7291
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode
>    Affects Versions: 2.6.0
>            Reporter: Xiaoyu Yao
>            Assignee: Xiaoyu Yao
>             Fix For: 2.6.0
>
>         Attachments: HDFS-7291.0.patch, HDFS-7291.1.patch, HDFS-7291.2.patch, 
> HDFS-7291.3.patch, HDFS-7291.4.patch
>
>
> HDFS-7090 changes to persist in-memory replicas using unbuffered IO on Linux 
> and Windows. On Linux distribution, it relies on the sendfile() API between 
> two file descriptors to achieve unbuffered IO copy. According to Linux 
> document at http://man7.org/linux/man-pages/man2/sendfile.2.html, this is 
> only supported on Linux kernel 2.6.33+. 
> As pointed by Haowei in the discussion below, FileChannel#transferTo already 
> has support for native unbuffered IO on POSIX platform. On Windows, JDK 6/7/8 
> has not implemented native unbuffered IO yet. We change to use 
> FileChannel#transfer for POSIX and our own native wrapper of CopyFileEx on 
> Windows for unbuffered copy.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to