[ 
https://issues.apache.org/jira/browse/HDFS-9388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16980976#comment-16980976
 ] 

zy.jordan commented on HDFS-9388:
---------------------------------

Hi, [~manojg], thnks for your refactoring job.

But, there is a little exception when a batch of datanodes with IN_MAINTENANCE 
state expire the maintenance time. As follows:

outOfServiceNodeBlocks -(iterate)---> it[Iterator] -(it.next)-> dn 
-(outOfServiceNodeBlocks.remove(dn) in stopMaintenance)

This procession may throw an exception,. It removes a element in an iteration.

 

> Refactor decommission related code to support maintenance state for datanodes
> -----------------------------------------------------------------------------
>
>                 Key: HDFS-9388
>                 URL: https://issues.apache.org/jira/browse/HDFS-9388
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Ming Ma
>            Assignee: Manoj Govindassamy
>            Priority: Major
>             Fix For: 2.9.0, 3.0.0-beta1
>
>         Attachments: HDFS-9388.01.patch, HDFS-9388.02.patch
>
>
> Lots of code can be shared between the existing decommission functionality 
> and to-be-added maintenance state support for datanodes. To make it easier to 
> add maintenance state support, let us first modify the existing code to make 
> it more general.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to