[
https://issues.apache.org/jira/browse/HADOOP-11122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14152919#comment-14152919
]
Arun Suresh commented on HADOOP-11122:
--------------------------------------
bq. ..maintains its own delegationToken sequence number, why in
incrementDelegationTokenSeqNum and incrementDelegationTokenSeqNum, it also
calls the super methods, but in getDelegationTokenSeqNum, it doesn't.
Agreed.. I can remove the {{super.}} calls from the methods in ZKDTSM (since
ZKDTSM does not really need it)
bq. . but in addPersistedDelegationToken, it operates
delegationTokenSequenceNumber directly..
This is similar to the reason why in the {{addKeys()}} method, we have to
directly update {{allKeys}} rather than use the {{store/updateDelegationKey}}
method. These methods are called by implementing classes before the DTSM is
activated/started and are meant to only update local state of the DTSM.. the
store and update methods for currentTokens, allKeys and the
delegationTokenSequenceNumber are meant to be used/overridden by an
implementing DTSM that handles distributed state.
Hope this makes sense ?
> Fix findbugs and order of key updates Abstract/ZK
> DelegationTokenSecretManagers
> --------------------------------------------------------------------------------
>
> Key: HADOOP-11122
> URL: https://issues.apache.org/jira/browse/HADOOP-11122
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Karthik Kambatla
> Assignee: Arun Suresh
> Priority: Blocker
> Attachments: HADOOP-11122.1.patch, HADOOP-11122.2.patch,
> HADOOP-11122.3.patch
>
>
> HADOOP-11017 adds ZK implementation for DelegationTokenSecretManager. This is
> a follow-up JIRA to address review comments there - findbugs and order of
> updates to the {{currentKey}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)