[
https://issues.apache.org/jira/browse/HDFS-10306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mingliang Liu updated HDFS-10306:
---------------------------------
Description:
This is a follow-up of [HDFS-10192].
The {{BlockManagerSafeMode$SafeModeMonitor#canLeave90}} is not checking the
{{namesystem#inTransitionToActive()}}, while it should. According to the fix of
[HDFS-10192], we should add this check to prevent the {{smmthread}} from
calling {{leaveSafeMode()}} too early.
was:
Scenario:
=======
write some blocks
wait till roll edits happen
Stop SNN
Delete some blocks in ANN, wait till the blocks are deleted in DN also.
restart the SNN and Wait till block reports come from datanode to SNN
Kill ANN then make SNN to Active.
> SafeModeMonitor should not leave safe mode if name system is starting active
> service
> ------------------------------------------------------------------------------------
>
> Key: HDFS-10306
> URL: https://issues.apache.org/jira/browse/HDFS-10306
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Reporter: Mingliang Liu
> Assignee: Mingliang Liu
>
> This is a follow-up of [HDFS-10192].
> The {{BlockManagerSafeMode$SafeModeMonitor#canLeave90}} is not checking the
> {{namesystem#inTransitionToActive()}}, while it should. According to the fix
> of [HDFS-10192], we should add this check to prevent the {{smmthread}} from
> calling {{leaveSafeMode()}} too early.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)