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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]