Chung-En Lee created HDDS-16909:
-----------------------------------
Summary: 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
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]