You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/04/09 14:25:53 UTC

[GitHub] [incubator-doris] morningman commented on a change in pull request #3283: Support setting replica quota in db level

morningman commented on a change in pull request #3283: Support setting replica quota in db level
URL: https://github.com/apache/incubator-doris/pull/3283#discussion_r406238020
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/common/util/ParseUtil.java
 ##########
 @@ -71,4 +71,17 @@ public static long analyzeDataVolumn(String dataVolumnStr) throws UserException
         return dataVolumn;
     }
 
+    public static long analyzeReplicaVolumn(String replicaVolumnStr) throws AnalysisException {
+        long replicaVolumn = 0;
+        try {
+            replicaVolumn = Long.parseLong(replicaVolumnStr);
+        } catch (NumberFormatException nfe) {
+            throw new AnalysisException("invalid data volumn:" + replicaVolumnStr);
+        }
+        if (replicaVolumn < 0L) {
 
 Review comment:
   ```suggestion
           if (replicaVolumn <= 0L) {
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org