[
https://issues.apache.org/jira/browse/HDDS-14194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Andika updated HDDS-14194:
-------------------------------
Description:
See BlockDataStreamOutput#needSync, currently SYNC is never used and therefore
we might not be sure when the data is actually flushed to the disk.
{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.
was:
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.
> 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
> Priority: Major
>
> See BlockDataStreamOutput#needSync, currently SYNC is never used and
> therefore we might not be sure when the data is actually flushed to the disk.
> {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]