Ivan Andika created HDDS-14194:
----------------------------------
Summary: Make streaming write SYNC configurable
Key: HDDS-14194
URL: https://issues.apache.org/jira/browse/HDDS-14194
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Ivan Andika
Assignee: Ivan Andika
See BlockDataStreamOutput#needSync, currently SYNC is never used.
{code:java}
private boolean needSync(long position) {
if (SYNC_SIZE > 0) {
// TODO: or position >= fileLength
if (position - syncPosition >= SYNC_SIZE) {
syncPosition = position;
return true;
}
}
return false;
} {code}
We can create a configuration to allow SYNC, which is disabled by default to
preserve compatibility.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]