[ https://issues.apache.org/jira/browse/HDFS-9129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mingliang Liu updated HDFS-9129: -------------------------------- Attachment: HDFS-9129.003.patch In v3 patch, the {{Namesystem}} will not leave *STARTUP* to *OFF* state. Instead, it asks the {{BlockManager}} every time when its {{isInStartupSafeMode}} is called. This way, we are able to simplify {{Namesystem}}'s state machine by delegating all *STARTUP* safe mode logic, which includes leaving safe mode, to {{BlockManager}}, and to {{BlockManagerSafeMode}}. V3 patch is for Jenkins. Please hold on before reviewing it. > Move the safemode block count into BlockManager > ----------------------------------------------- > > Key: HDFS-9129 > URL: https://issues.apache.org/jira/browse/HDFS-9129 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Haohui Mai > Assignee: Mingliang Liu > Attachments: HDFS-9129.000.patch, HDFS-9129.001.patch, > HDFS-9129.002.patch, HDFS-9129.003.patch > > > The {{SafeMode}} needs to track whether there are enough blocks so that the > NN can get out of the safemode. These fields can moved to the > {{BlockManager}} class. -- This message was sent by Atlassian JIRA (v6.3.4#6332)