Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.4.0
-
Reviewed
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.
Attachments
Issue Links
- causes
-
HDFS-16910 Fix incorrectly initializing RandomAccessFile caused flush performance decreased for JN
- Resolved
- duplicates
-
HDFS-15881 Fix incorrectly initializing RandomAccessFile based on configuration options
- Resolved
- links to