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 "Xiaoqiao He (Jira)" <ji...@apache.org> on 2021/03/07 09:48:00 UTC

[jira] [Updated] (HDFS-15882) Fix incorrectly initializing RandomAccessFile based on configuration options

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

Xiaoqiao He updated HDFS-15882:
-------------------------------
    Description: 
`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.

> 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
>            Priority: Major
>
> `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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org