jyotirmoy-gh opened a new pull request, #5294:
URL: https://github.com/apache/ozone/pull/5294

   ## What changes were proposed in this pull request?
   
   Return proper error message thrown when text/decimal is supplied as a 
parameter for namespace-quota
   
   Issue observed -
   ```
   [root@vc0101 ~]# ozone sh bucket create vol1/buck5 --namespace-quota test
   For input string: "test"
   [root@vc0101 ~]# ozone sh volume create vol2 --namespace-quota test
   For input string: "test"
   [root@vc0101 ~]# ozone sh bucket setquota vol1/buck1 --namespace-quota test
   For input string: "test"
   [root@vc0101 ~]# ozone sh volume setquota vol1 --namespace-quota test
   For input string: "test" 
   [root@vc0101 ~]# ozone sh bucket create vol1/buck6 --namespace-quota 1.5
   For input string: "1.5" 
   ```
   Solution provided -
   ```
   bash-4.2$ ozone sh volume create vol1 --namespace-quota test
   Invalid values for quota, to ensure that the Quota format is legal(supported 
values are positive long values).
   bash-4.2$ ozone sh volume create vol1 --namespace-quota 1.5
   Invalid values for quota, to ensure that the Quota format is legal(supported 
values are positive long values).
   bash-4.2$ ozone sh volume create vol1
   bash-4.2$ ozone sh volume setquota vol1 --namespace-quota test
   Invalid values for quota, to ensure that the Quota format is legal(supported 
values are positive long values).
   bash-4.2$ ozone sh volume setquota vol1 --namespace-quota 1.5
   Invalid values for quota, to ensure that the Quota format is legal(supported 
values are positive long values).
   bash-4.2$ ozone sh bucket create vol1/buck1 --namespace-quota test
   Invalid values for quota, to ensure that the Quota format is legal(supported 
values are positive long values).
   bash-4.2$ ozone sh bucket create vol1/buck1 --namespace-quota 1.5
   Invalid values for quota, to ensure that the Quota format is legal(supported 
values are positive long values).
   bash-4.2$ ozone sh bucket create vol1/buck1
   bash-4.2$ ozone sh bucket setquota vol1/buck1 --namespace-quota test
   Invalid values for quota, to ensure that the Quota format is legal(supported 
values are positive long values).
   bash-4.2$ ozone sh bucket setquota vol1/buck1 --namespace-quota 1.5
   Invalid values for quota, to ensure that the Quota format is legal(supported 
values are positive long values).
   ```
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-9278
   
   ## How was this patch tested?
   
   Tested manually on docker environment
   


-- 
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