[ 
https://issues.apache.org/jira/browse/HADOOP-19966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18115470#comment-18115470
 ] 

ASF GitHub Bot commented on HADOOP-19966:
-----------------------------------------

pan3793 commented on PR #8688:
URL: https://github.com/apache/hadoop/pull/8688#issuecomment-5677391891

   @Hexiaoqiao Token verify/renew/cancel are not affected: `getTokenInfo` and 
`getDelegationKey` fall back to ZK on a cache miss. The in-memory load exists 
for the expired-token remover, which only scans `currentTokens` (HADOOP-13487). 
That relied on PathChildrenCache `BUILD_INITIAL_CACHE` being synchronous; 
HADOOP-17835 (3.4.0) switched to `CuratorCache.start()`, which is asynchronous. 
The listener still fills the map a few seconds later, so the lasting effects 
are: token owner stats (Router `getTopTokenRealOwners`) are computed from a 
partial map and never corrected for pre-restart tokens, the root container 
znode is parsed on every startup and logs an ERROR, and 
`testNodesLoadedAfterRestart` is flaky in CI. Router with the token watcher 
disabled uses its own synchronous `rebuildTokenCache` and is unaffected. 
Retitled the PR and rewrote the description accordingly.




> ZKDelegationTokenSecretManager may fail to load tokens and keys from 
> ZooKeeper on startup
> -----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-19966
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19966
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Cheng Pan
>            Priority: Major
>              Labels: pull-request-available
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to