Skip to content

Commit

Permalink
OAK-11266: add warn log
Browse files Browse the repository at this point in the history
  • Loading branch information
t-rana committed Dec 11, 2024
1 parent 426f5fb commit 2cfc549
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,9 @@ public void setProperties(Properties properties) {
private void setRemoteStorageMode() {
String s3EndPoint = properties.getProperty(S3Constants.S3_END_POINT, "");
if (s3EndPoint.contains("googleapis")) {
if (properties.get(S3Constants.MODE) == RemoteStorageMode.S3) {
LOG.warn("Mismatch between remote storage mode and s3EndPoint, overriding mode to GCP");
}
properties.put(S3Constants.MODE, RemoteStorageMode.GCP);
return;
}
Expand Down

0 comments on commit 2cfc549

Please sign in to comment.