-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-17794 Documentation for dfs.datanode.synconclose #8065
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
d2f4b7e
5617e8d
019a3da
56b344e
62767df
62bb759
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -1779,6 +1779,21 @@ | |||||||
| </description> | ||||||||
| </property> | ||||||||
|
|
||||||||
| <property> | ||||||||
| <name>dfs.datanode.synconclose</name> | ||||||||
| <value>false</value> | ||||||||
| <description> | ||||||||
| If this configuration is enabled, the datanode will instruct the | ||||||||
| operating system to sync data block files contents to disk when the | ||||||||
| blockfile is closed. | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
|
||||||||
| This has the benefit of ensuring that data is written to disk | ||||||||
| immediately when a block is closed, avoiding the data being held | ||||||||
| in the operating system cache. This can help data loss in the event | ||||||||
| of a malfunction such as a power failure. | ||||||||
|
Comment on lines
+1790
to
+1793
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Does the sync of the dirty block in the page cache force the removal of the block from the page cache? I'm not sure that it does. The user can advise the OS, where supported, that it doesn't need the block in the page cache through the |
||||||||
| </description> | ||||||||
| </property> | ||||||||
|
|
||||||||
| <property> | ||||||||
| <name>dfs.client.failover.max.attempts</name> | ||||||||
| <value>15</value> | ||||||||
|
|
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.