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

Rakesh R commented on HDFS-7708:
--------------------------------

Thanks [~cmccabe] for the hint. Attached simple fix. Kindly review it.

While removing pid file, its not doing special checks for 'balancer' command, 
considering that the same problem is applicable to all commands. Please feel 
free to correct me if am missing anything.

> Balancer should delete its pid file when it completes rebalance
> ---------------------------------------------------------------
>
>                 Key: HDFS-7708
>                 URL: https://issues.apache.org/jira/browse/HDFS-7708
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: balancer & mover
>    Affects Versions: 2.6.0
>            Reporter: Akira AJISAKA
>         Attachments: HDFS-7708.patch
>
>
> When balancer completes rebalance and exits, it does not delete its pid file. 
> Starting balancer again, then "kill -0 pid" to confirm the balancer process 
> is not running.
> The problem is: If another process is running as the same pid as `cat 
> pidfile`, balancer fails to start with following message:
> {code}
>   balancer is running as process 3443. Stop it first.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to