This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 871002c882 [fix](kerberos) should renew the kerberos ticket each half
of ticket lifetime (#21546)
871002c882 is described below
commit 871002c88220a28aa0e7cb006848fe497da88601
Author: Mingyu Chen <[email protected]>
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 6a45a92b37..c4fbb594d7 100644
--- a/be/src/io/fs/hdfs_file_system.h
+++ b/be/src/io/fs/hdfs_file_system.h
@@ -79,7 +79,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: [email protected]
For additional commands, e-mail: [email protected]