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

Chung-En Lee updated HDDS-16909:
--------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> Pass `writeOptions` in `RocksDatabase.delete(byte[])` and `deleteRange`
> -----------------------------------------------------------------------
>
>                 Key: HDDS-16909
>                 URL: https://issues.apache.org/jira/browse/HDDS-16909
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Chung-En Lee
>            Assignee: Meng-Shuan Tsai
>            Priority: Minor
>              Labels: pull-request-available
>
> Noticed during review of HDDS-16845.
> Currently, {{RocksDatabase#delete(ColumnFamily, byte[])}} and 
> {{RocksDatabase#deleteRange(ColumnFamily, ...)}} do not pass {{writeOptions}} 
> to the underlying RocksDB calls, unlike {{RocksDatabase#put}} or 
> {{{}RocksDatabase#delete(ColumnFamily, ByteBuffer){}}}.
> When the configuration enables `{{{}writeoption.sync=true`{}}}, direct 
> deletes and range deletes are not synced to disk while puts and batch writes 
> are. This does not match the documentation ({{{}RocksDB.md:79{}}}) when 
> `{{{}writeoption.sync=true`{}}} is enabled.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to