diff --git a/src/common/src/config.rs b/src/common/src/config.rs index e07339e6724b7..c8bbd591d7156 100644 --- a/src/common/src/config.rs +++ b/src/common/src/config.rs @@ -1729,7 +1729,7 @@ pub mod default { } pub mod developer { - use crate::util::env_var::env_var_is_false_or; + use crate::util::env_var::env_var_is_true_or; const RW_USE_OPENDAL_FOR_S3: &str = "RW_USE_OPENDAL_FOR_S3"; pub fn object_store_retry_unknown_service_error() -> bool { @@ -1745,7 +1745,7 @@ pub mod default { // The reason why we use !env_var_is_false_or(RW_USE_OPENDAL_FOR_S3, false) here is // 1. Maintain compatibility so that there is no behavior change in cluster with RW_USE_OPENDAL_FOR_S3 set. // 2. Change the default behavior to use opendal for s3 if RW_USE_OPENDAL_FOR_S3 is not set. - !env_var_is_false_or(RW_USE_OPENDAL_FOR_S3, false) + env_var_is_true_or(RW_USE_OPENDAL_FOR_S3, false) } } } diff --git a/src/config/example.toml b/src/config/example.toml index 4f95e929d4048..cc12e3533079d 100644 --- a/src/config/example.toml +++ b/src/config/example.toml @@ -204,7 +204,7 @@ identity_resolution_timeout_s = 5 [storage.object_store.s3.developer] object_store_retry_unknown_service_error = false object_store_retryable_service_error_codes = ["SlowDown", "TooManyRequests"] -use_opendal = true +use_opendal = false [system] barrier_interval_ms = 1000