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

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

commit d5155ae6e2788619ca5dee8e54c3c7855a3460b0
Author: Mingyu Chen <morning...@163.com>
AuthorDate: Fri Jul 7 14:52:36 2023 +0800

    [fix](kerberos) should renew the kerberos ticket each half of ticket 
lifetime (#21546)
    
    Follow #21265, the renew interval of kerberos ticket should be half of 
config::kerberos_expiration_time_seconds
---
 be/src/io/fs/hdfs_file_system.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/io/fs/hdfs_file_system.h b/be/src/io/fs/hdfs_file_system.h
index bd28ec73c2..7720af17cf 100644
--- a/be/src/io/fs/hdfs_file_system.h
+++ b/be/src/io/fs/hdfs_file_system.h
@@ -78,7 +78,7 @@ public:
     bool invalid() {
         return _invalid ||
                (_is_kerberos &&
-                _now() - _create_time.load() > 
config::kerberos_expiration_time_seconds * 1000);
+                _now() - _create_time.load() > 
config::kerberos_expiration_time_seconds * 1000 / 2);
     }
 
     void set_invalid() { _invalid = true; }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to