race in removing error edit stream could cause fatalExit()
----------------------------------------------------------
Key: HDFS-3264
URL: https://issues.apache.org/jira/browse/HDFS-3264
Project: Hadoop HDFS
Issue Type: Bug
Components: name-node
Affects Versions: 1.1.0
Reporter: Brandon Li
Assignee: Brandon Li
An unhealthy storage directory and its edit stream can be removed from
editStreams list. There are multiple places to remove unhealthy directory and
its stream, such as log sync, checkpointing.
Method removeEditsStreamsAndStorageDirs() could unneceissarily invoke
fatalExit() if another thread removes one error editStream before current
thread. This race could be between logSync requests, or between logSync and any
place where a storage directory may be removed, e.g., during checkpointing.
--
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