Details
-
Improvement
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
None
Description
At present we do not have an option to hsync WAL edits to the disk for better durability. In our local tests we see 10-15% latency impact of using hsync instead of hflush which is not very high.
We should have a configurable option to hysnc WAL edits instead of just sync/hflush which will call the corresponding API on the hadoop side. Currently HBase handles both SYNC_WAL and FSYNC_WAL as the same calling FSDataOutputStream sync/hflush on the hadoop side. This can be modified to let FSYNC_WAL call hsync on the hadoop side instead of sync/hflush. We can keep the default value to sync as the current behavior and hsync can be enabled based on explicit configuration.
Attachments
Attachments
Issue Links
- breaks
-
HBASE-23587 The FSYNC_WAL flag does not work on branch-2.x
- Resolved
- is related to
-
HBASE-20471 Recheck the design and implementation of FSYNC_WAL durability for WAL
- Resolved
- relates to
-
HBASE-5954 Allow proper fsync support for HBase
- Closed
1.
|
Implement fsync for AsyncFSWAL | Resolved | Duo Zhang |