[
https://issues.apache.org/jira/browse/HDFS-8273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14517631#comment-14517631
]
Jing Zhao commented on HDFS-8273:
---------------------------------
# We should also move the {{removeBlocks}} call out of the write lock in
{{clearCorruptLazyPersistFiles}}
# {{logSync}} should be called before {{removeBlocks}}. Otherwise we may have
data loss if {{logSync}} fails while block invalidation commands have been sent
out to DNs.
# We may need to fix {{TestNameNodeMetrics}}.
> logSync() is called inside of write lock for delete op
> ------------------------------------------------------
>
> Key: HDFS-8273
> URL: https://issues.apache.org/jira/browse/HDFS-8273
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Affects Versions: 2.7.0
> Reporter: Jing Zhao
> Assignee: Haohui Mai
> Priority: Blocker
> Attachments: HDFS-8273.000.patch
>
>
> HDFS-7573 moves the logSync call inside of the write lock by accident. We
> should move it out.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)