HDFS-17794 Documentation for dfs.datanode.synconclose#8065
HDFS-17794 Documentation for dfs.datanode.synconclose#8065Jimvin wants to merge 9 commits intoapache:trunkfrom Jimvin:trunk
Conversation
HDFS-17794 Documentation for dfs.datanode.synconclose
|
💔 -1 overall
This message was automatically generated. |
ayushtkn
left a comment
There was a problem hiding this comment.
There is an entry of this conf in TestHdfsConfigFields, since we are adding it here, can we remove it from there?
https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tools/TestHdfsConfigFields.java#L81-L82
|
Yes, as far as I can see the property |
…t.xml Co-authored-by: Dave Marion <dlmarion@apache.org>
…t.xml Co-authored-by: Dave Marion <dlmarion@apache.org>
…t.xml Co-authored-by: Dave Marion <dlmarion@apache.org>
|
💔 -1 overall
This message was automatically generated. |
| If this property is enabled, the datanode will instruct the | ||
| operating system to sync data block files contents to disk when the | ||
| blockfile is closed. This can help data loss in the event of a malfunction such as a power | ||
| failure. | ||
|
|
||
| This has the benefit of ensuring that data is written to disk | ||
| immediately when a block is closed, avoiding the data being held | ||
| solely in the operating system cache. This can help data loss in the event | ||
| of a malfunction such as a power failure. |
There was a problem hiding this comment.
My previous suggestions included moving the sentence "This can help data loss in the event of a malfunction such as a power failure." from the second paragraph to the first and possibly removing the second paragraph because at the time it was inaccurate. Now the sentence is duplicated.
There was a problem hiding this comment.
Additionally, it's unclear to me whether or not this property has any bearing on erasure encoded files. It might be useful to run that to ground and include that in the property description.
Description of PR
HDFS-17794. Documentation for dfs.datanode.synconclose.
The HDFS configuration property dfs.datanode.synconclose is absent from the hdfs-site.xml documentation. This PR adds and entry in hdfs-default.xml for this property along with a description of its purpose.
How was this patch tested?
Documentation only, no additional testing performed.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?