[ 
https://issues.apache.org/jira/browse/HDFS-15882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiaoqiao He resolved HDFS-15882.
--------------------------------
    Fix Version/s: 3.4.0
     Hadoop Flags: Reviewed
       Resolution: Fixed

Committed to trunk. Thanks [~lamberken] for your report and contributions!

> Fix incorrectly initializing RandomAccessFile based on configuration options
> ----------------------------------------------------------------------------
>
>                 Key: HDFS-15882
>                 URL: https://issues.apache.org/jira/browse/HDFS-15882
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Xie Lei
>            Assignee: Xie Lei
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.4.0
>
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> `rw` Open for reading and writing. If the file does not already exist then an 
> attempt will be made to create it.
> `rws` Require that every update to the file's content or metadata be written 
> synchronously to the underlying storage device.
> From the literal meaning of this variable `shouldSyncWritesAndSkipFsync`, we 
> should use `rw` when `shouldSyncWritesAndSkipFsync` is true.
> We use SATA disk to store the journal node's data. It's not effective for 
> improving RPC performance whether the `shouldSyncWritesAndSkipFsync` variable 
> is true or false. it's caused by initializing RandomAccessFile incorrectly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to