amaliujia commented on a change in pull request #1412: URL: https://github.com/apache/hadoop-ozone/pull/1412#discussion_r486775970
########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java ########## @@ -174,6 +184,20 @@ public OzoneBucket(ConfigurationSource conf, ClientProtocol proxy, this.modificationTime = Instant.ofEpochMilli(modificationTime); } + @SuppressWarnings("parameternumber") Review comment: Out of curiosity: what is the purpose of `@SuppressWarnings("parameternumber")`? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java ########## @@ -464,6 +469,8 @@ public void createBucket( .setStorageType(storageType) .setSourceVolume(bucketArgs.getSourceVolume()) .setSourceBucket(bucketArgs.getSourceBucket()) + .setQuotaInBytes(quotaInBytes) + .setQuotaInCounts(quotaInCounts) Review comment: Do you need to verify whether `quotaInBytes` and `quotaInCounts` are valid? e.g. >= 0? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java ########## @@ -174,6 +184,20 @@ public OzoneBucket(ConfigurationSource conf, ClientProtocol proxy, this.modificationTime = Instant.ofEpochMilli(modificationTime); } + @SuppressWarnings("parameternumber") Review comment: Out of curiosity: what is the purpose of `@SuppressWarnings("parameternumber")`? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java ########## @@ -464,6 +469,8 @@ public void createBucket( .setStorageType(storageType) .setSourceVolume(bucketArgs.getSourceVolume()) .setSourceBucket(bucketArgs.getSourceBucket()) + .setQuotaInBytes(quotaInBytes) + .setQuotaInCounts(quotaInCounts) Review comment: Do you need to verify whether `quotaInBytes` and `quotaInCounts` are valid? e.g. >= 0? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java ########## @@ -174,6 +184,20 @@ public OzoneBucket(ConfigurationSource conf, ClientProtocol proxy, this.modificationTime = Instant.ofEpochMilli(modificationTime); } + @SuppressWarnings("parameternumber") Review comment: Out of curiosity: what is the purpose of `@SuppressWarnings("parameternumber")`? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java ########## @@ -464,6 +469,8 @@ public void createBucket( .setStorageType(storageType) .setSourceVolume(bucketArgs.getSourceVolume()) .setSourceBucket(bucketArgs.getSourceBucket()) + .setQuotaInBytes(quotaInBytes) + .setQuotaInCounts(quotaInCounts) Review comment: Do you need to verify whether `quotaInBytes` and `quotaInCounts` are valid? e.g. >= 0? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java ########## @@ -174,6 +184,20 @@ public OzoneBucket(ConfigurationSource conf, ClientProtocol proxy, this.modificationTime = Instant.ofEpochMilli(modificationTime); } + @SuppressWarnings("parameternumber") Review comment: Out of curiosity: what is the purpose of `@SuppressWarnings("parameternumber")`? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java ########## @@ -464,6 +469,8 @@ public void createBucket( .setStorageType(storageType) .setSourceVolume(bucketArgs.getSourceVolume()) .setSourceBucket(bucketArgs.getSourceBucket()) + .setQuotaInBytes(quotaInBytes) + .setQuotaInCounts(quotaInCounts) Review comment: Do you need to verify whether `quotaInBytes` and `quotaInCounts` are valid? e.g. >= 0? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java ########## @@ -174,6 +184,20 @@ public OzoneBucket(ConfigurationSource conf, ClientProtocol proxy, this.modificationTime = Instant.ofEpochMilli(modificationTime); } + @SuppressWarnings("parameternumber") Review comment: Out of curiosity: what is the purpose of `@SuppressWarnings("parameternumber")`? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java ########## @@ -464,6 +469,8 @@ public void createBucket( .setStorageType(storageType) .setSourceVolume(bucketArgs.getSourceVolume()) .setSourceBucket(bucketArgs.getSourceBucket()) + .setQuotaInBytes(quotaInBytes) + .setQuotaInCounts(quotaInCounts) Review comment: Do you need to verify whether `quotaInBytes` and `quotaInCounts` are valid? e.g. >= 0? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java ########## @@ -174,6 +184,20 @@ public OzoneBucket(ConfigurationSource conf, ClientProtocol proxy, this.modificationTime = Instant.ofEpochMilli(modificationTime); } + @SuppressWarnings("parameternumber") Review comment: Out of curiosity: what is the purpose of `@SuppressWarnings("parameternumber")`? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java ########## @@ -464,6 +469,8 @@ public void createBucket( .setStorageType(storageType) .setSourceVolume(bucketArgs.getSourceVolume()) .setSourceBucket(bucketArgs.getSourceBucket()) + .setQuotaInBytes(quotaInBytes) + .setQuotaInCounts(quotaInCounts) Review comment: Do you need to verify whether `quotaInBytes` and `quotaInCounts` are valid? e.g. >= 0? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java ########## @@ -174,6 +184,20 @@ public OzoneBucket(ConfigurationSource conf, ClientProtocol proxy, this.modificationTime = Instant.ofEpochMilli(modificationTime); } + @SuppressWarnings("parameternumber") Review comment: Out of curiosity: what is the purpose of `@SuppressWarnings("parameternumber")`? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java ########## @@ -464,6 +469,8 @@ public void createBucket( .setStorageType(storageType) .setSourceVolume(bucketArgs.getSourceVolume()) .setSourceBucket(bucketArgs.getSourceBucket()) + .setQuotaInBytes(quotaInBytes) + .setQuotaInCounts(quotaInCounts) Review comment: Do you need to verify whether `quotaInBytes` and `quotaInCounts` are valid? e.g. >= 0? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java ########## @@ -174,6 +184,20 @@ public OzoneBucket(ConfigurationSource conf, ClientProtocol proxy, this.modificationTime = Instant.ofEpochMilli(modificationTime); } + @SuppressWarnings("parameternumber") Review comment: Out of curiosity: what is the purpose of `@SuppressWarnings("parameternumber")`? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java ########## @@ -464,6 +469,8 @@ public void createBucket( .setStorageType(storageType) .setSourceVolume(bucketArgs.getSourceVolume()) .setSourceBucket(bucketArgs.getSourceBucket()) + .setQuotaInBytes(quotaInBytes) + .setQuotaInCounts(quotaInCounts) Review comment: Do you need to verify whether `quotaInBytes` and `quotaInCounts` are valid? e.g. >= 0? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java ########## @@ -174,6 +184,20 @@ public OzoneBucket(ConfigurationSource conf, ClientProtocol proxy, this.modificationTime = Instant.ofEpochMilli(modificationTime); } + @SuppressWarnings("parameternumber") Review comment: Out of curiosity: what is the purpose of `@SuppressWarnings("parameternumber")`? ########## File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java ########## @@ -464,6 +469,8 @@ public void createBucket( .setStorageType(storageType) .setSourceVolume(bucketArgs.getSourceVolume()) .setSourceBucket(bucketArgs.getSourceBucket()) + .setQuotaInBytes(quotaInBytes) + .setQuotaInCounts(quotaInCounts) Review comment: Do you need to verify whether `quotaInBytes` and `quotaInCounts` are valid? e.g. >= 0? ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org