keith-turner commented on issue #4455:
URL: https://github.com/apache/accumulo/issues/4455#issuecomment-2052289327

   > some benchmarking/testing and probably a way to configure or turn it off.
   
   We could consider using the metadata table write ahead log sync settings to 
control this.  For example if the metadata table is configured to use hsync on 
its wal updates, then could use hsync on the files being added in that case.  
That would look like the following.
   
    1. Metadata table has hsync set for wal updates
    2. File A is created for compaction
    3. hsync() is called on File A because it set on metadata table
    4. File A is closed
    5. reference to File A is written to metadata table and that mutation is 
written to walog
    6. hsync() is called on walog
   
   In the above the file has the same durability guarantee as the reference to 
the file.  If hsync is not called when adding the file reference we could omit 
calling it when closing the file, like the following.
   
    1. Metadata table does not have hsync set for wal updates
    2. File A is created for compaction
    4. File A is closed
    5. reference to File A is written to metadata table and that mutation is 
written to walog
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to