HDDS-1531. Disable the sync flag by default during chunk writes in Datanode (#820). Contributed by Shashikant Banerjee.

This commit is contained in:
Shashikant Banerjee 2019-05-16 18:38:52 +05:30
parent de01422c2e
commit e66ecc564a
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ public final class OzoneConfigKeys {
public static final String DFS_CONTAINER_CHUNK_WRITE_SYNC_KEY = public static final String DFS_CONTAINER_CHUNK_WRITE_SYNC_KEY =
"dfs.container.chunk.write.sync"; "dfs.container.chunk.write.sync";
public static final boolean DFS_CONTAINER_CHUNK_WRITE_SYNC_DEFAULT = true; public static final boolean DFS_CONTAINER_CHUNK_WRITE_SYNC_DEFAULT = false;
/** /**
* Ratis Port where containers listen to. * Ratis Port where containers listen to.
*/ */

View File

@ -54,7 +54,7 @@
</property> </property>
<property> <property>
<name>dfs.container.chunk.write.sync</name> <name>dfs.container.chunk.write.sync</name>
<value>true</value> <value>false</value>
<tag>OZONE, CONTAINER, MANAGEMENT</tag> <tag>OZONE, CONTAINER, MANAGEMENT</tag>
<description>Determines whether the chunk writes in the container happen as <description>Determines whether the chunk writes in the container happen as
sync I/0 or buffered I/O operation. sync I/0 or buffered I/O operation.