virajjasani opened a new pull request, #5487:
URL: https://github.com/apache/hadoop/pull/5487

   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,
   ```
   bin/hdfs dfsrouteradmin -add /data4 ns1 /data4
   ..
   ..
   
   Cannot add destination at ns1 /data4
   
   
   echo $?
   255 
   ```
   ```
   bin/hdfs dfsrouteradmin -rm /data4
   ..
   ..
   Cannot remove mount point /data4
   
   
   echo $?
   0
   ```
   
   Removal of mount point should stay consistent with other options and return 
non-zero (unsuccessful) status code.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to