Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15882

Fix incorrectly initializing RandomAccessFile based on configuration options

    XMLWordPrintableJSON

Details

    • 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

          Activity

            People

              lamberken Xie Lei
              lamberken Xie Lei
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m