ashishkumar50 commented on code in PR #6257:
URL: https://github.com/apache/ozone/pull/6257#discussion_r1502561727
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/util/S3StorageType.java:
##########
@@ -62,6 +62,10 @@ public ReplicationType getType() {
public static S3StorageType getDefault(ConfigurationSource config) {
String replicationString = config.get(OzoneConfigKeys.OZONE_REPLICATION);
ReplicationFactor configFactor;
+ if (replicationString == null) {
Review Comment:
You can check for `StringUtils.isEmpty(replicationString)` to handle even if
config is present without value.
--
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]