You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Viraj Jasani (Jira)" <ji...@apache.org> on 2023/03/16 20:58:00 UTC

[jira] [Comment Edited] (HDFS-16957) RBF: Exit status of dfsrouteradmin -rm should be non-zero for unsuccessful attempt

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

Viraj Jasani edited comment on HDFS-16957 at 3/16/23 8:57 PM:
--------------------------------------------------------------

[~ayushtkn] [~goiri] [~elgoiri] [~hexiaoqiao] could you please let me know if you agree with this?


was (Author: vjasani):
[~ayushtkn] [~goiri] [~hexiaoqiao] could you please let me know if you agree with this?

> RBF: Exit status of dfsrouteradmin -rm should be non-zero for unsuccessful attempt
> ----------------------------------------------------------------------------------
>
>                 Key: HDFS-16957
>                 URL: https://issues.apache.org/jira/browse/HDFS-16957
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Viraj Jasani
>            Assignee: Viraj Jasani
>            Priority: Major
>
> DFS router admin returns non-zero status code for unsuccessful attempt to add or update mount point. However, same is not the case with removal of mount point.
> For instance,
> {code:java}
> bin/hdfs dfsrouteradmin -add /data4 ns1 /data4
> ..
> ..
> Cannot add destination at ns1 /data4
> echo $?
> 255 {code}
> {code:java}
> /hadoop/bin/hdfs dfsrouteradmin -rm /data4
> ..
> ..
> Cannot remove mount point /data4
> echo $?
> 0{code}
> Removal of mount point should stay consistent with other options and return non-zero (unsuccessful) status code.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org