Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.0-beta, 3.0.0-alpha1
-
None
-
Reviewed
-
The dfsadmin -metasave command has been changed to overwrite the output file. Previously, this command would append to the output file if it already existed.
Description
ClientProtocol#metaSave opens its output file for append. This prevents the operation from being idempotent, because retries can cause unpredictable side effects (single copy of the output vs. multiple copies). As discussed on HDFS-4974, the operation could be made idempotent by changing this to open the file for overwrite instead of append.
Attachments
Attachments
Issue Links
- relates to
-
HDFS-4974 Analyze and add annotations to Namenode protocol methods and enable retry
- Closed