zhouyifan279 opened a new issue #916: URL: https://github.com/apache/incubator-kyuubi/issues/916
### 1. Describe the feature Push Kyuubi Server maintained HDFS, HiveMetaStore DelegationTokens to SQL engines through TCLIService.Iface#RenewDelegationToken ### 2. Motivation This is a sub-task under umbrella issue #913 and has to be done after sub-task #915 ### 3. Describe the solution Take Kyuubi Server maintained DelegationTokens' version as Vk, SQL engine received DelegationTokens' version as Ve. Note: Both Vk and Ve are maitained on Kyuubi Server side. Steps: 1. Let Vk=Ve=-1 when Kyuubi Server starts. 2. When Kyuubi Server obtained DelegationTokens, Vk increases by 1. 3. When talks to a SQL engine, Kyuubi Server will check whether Vk is equal to Ve. 4. If Vk is not equal to Ve, Kyuubi Server will push DelegationTokens to the SQL engine through an open KyuubiSession. 5. If push succeeds, Ve will be updated to Vk, else push operation will be retried at the next RPC invocation. Note: If SQL engine received such DelegationTokens whose min issueDate is less than or equal to current DelegationTokens' min issueDate, SQL engine will return success to Kyuubi Server but keep using current tokens. ### 4. Additional context -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
