[
https://issues.apache.org/jira/browse/HDFS-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13176847#comment-13176847
]
Konstantin Shvachko commented on HDFS-1910:
-------------------------------------------
Sorry had a bad commit day here.
I did not include a test here because this was revealed through watching log
files during NN startup, which indicates to me that the condition is easily
traceable. And the test would have been based either on logs analysis or some
instrumentation of FSImage, which would count methods calls. Neither looks
appealing to me, but feel free to file a bug if you feel strongly about it.
> when dfs.name.dir and dfs.name.edits.dir are same fsimage will be saved twice
> every time
> ----------------------------------------------------------------------------------------
>
> Key: HDFS-1910
> URL: https://issues.apache.org/jira/browse/HDFS-1910
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: name-node
> Affects Versions: 0.21.0
> Reporter: Gokul
> Priority: Minor
> Labels: critical-0.22.0
> Attachments: saveImageOnce-v0.22.patch
>
>
> when image and edits dir are configured same, the fsimage flushing from
> memory to disk will be done twice whenever saveNamespace is done. this may
> impact the performance of backupnode/snn where it does a saveNamespace during
> every checkpointing time.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira