This is an automated email from the ASF dual-hosted git repository.

morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 807619e512f branch-3.1: [fix](iceberg rest) OAuth2 Token refresh using 
Iceberg default value #55578 (#55624)
807619e512f is described below

commit 807619e512fb805dcdd5a41ca74ce28c9f328795
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Sep 6 00:38:27 2025 +0800

    branch-3.1: [fix](iceberg rest) OAuth2 Token refresh using Iceberg default 
value #55578 (#55624)
    
    Cherry-picked from #55578
    
    Co-authored-by: zy-kkk <[email protected]>
---
 .../doris/datasource/property/metastore/IcebergRestProperties.java     | 3 ++-
 .../doris/datasource/property/metastore/IcebergRestPropertiesTest.java | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore/IcebergRestProperties.java
 
b/fe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore/IcebergRestProperties.java
index 938bc21ecd2..6a93e72bdd5 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore/IcebergRestProperties.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore/IcebergRestProperties.java
@@ -100,7 +100,8 @@ public class IcebergRestProperties extends 
AbstractIcebergProperties {
     @ConnectorProperty(names = {"iceberg.rest.oauth2.token-refresh-enabled"},
             required = false,
             description = "Enable oauth2 token refresh for the iceberg rest 
catalog service.")
-    private String icebergRestOauth2TokenRefreshEnabled = "false";
+    private String icebergRestOauth2TokenRefreshEnabled = String.valueOf(
+            OAuth2Properties.TOKEN_REFRESH_ENABLED_DEFAULT);
 
     @ConnectorProperty(names = {"iceberg.rest.vended-credentials-enabled"},
             required = false,
diff --git 
a/fe/fe-core/src/test/java/org/apache/doris/datasource/property/metastore/IcebergRestPropertiesTest.java
 
b/fe/fe-core/src/test/java/org/apache/doris/datasource/property/metastore/IcebergRestPropertiesTest.java
index e310bb8c3dc..ec79e08b74f 100644
--- 
a/fe/fe-core/src/test/java/org/apache/doris/datasource/property/metastore/IcebergRestPropertiesTest.java
+++ 
b/fe/fe-core/src/test/java/org/apache/doris/datasource/property/metastore/IcebergRestPropertiesTest.java
@@ -90,7 +90,8 @@ public class IcebergRestPropertiesTest {
         Assertions.assertEquals("client_credentials", 
catalogProps.get(OAuth2Properties.CREDENTIAL));
         Assertions.assertEquals("http://auth.example.com/token";, 
catalogProps.get(OAuth2Properties.OAUTH2_SERVER_URI));
         Assertions.assertEquals("read write", 
catalogProps.get(OAuth2Properties.SCOPE));
-        Assertions.assertEquals("false", 
catalogProps.get(OAuth2Properties.TOKEN_REFRESH_ENABLED));
+        
Assertions.assertEquals(String.valueOf(OAuth2Properties.TOKEN_REFRESH_ENABLED_DEFAULT),
+                catalogProps.get(OAuth2Properties.TOKEN_REFRESH_ENABLED));
     }
 
     @Test


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to