adonis0147 commented on code in PR #17467:
URL: https://github.com/apache/doris/pull/17467#discussion_r1127283898
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/S3Resource.java:
##########
@@ -201,6 +201,33 @@ public void modifyProperties(Map<String, String>
properties) throws DdlException
throw new DdlException("current not support modify property :
" + any.get());
}
}
+
+ boolean needCheck = !this.properties.containsKey(S3_VALIDITY_CHECK)
+ ||
Boolean.parseBoolean(this.properties.get(S3_VALIDITY_CHECK));
+ if (properties.containsKey(S3_VALIDITY_CHECK)) {
+ needCheck =
Boolean.parseBoolean(properties.get(S3_VALIDITY_CHECK));
+ }
Review Comment:
```suggestion
boolean needCheck =
Boolean.parseBoolean(this.properties.getOrDefault(S3_VALIDITY_CHECK, "false"));
```
--
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]