[
https://issues.apache.org/jira/browse/YARN-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13771437#comment-13771437
]
Jian He commented on YARN-1214:
-------------------------------
bq. We can probably return a client token in getApplicationReport after the app
is saved.
For that, we may need a boolean to be set after both Attempt_saved and
recovery. Either way is fine. As already created the patch, submit the patch,
not a big change though.
The patch moves the registerMasterKey to AMLaunchedTransition and modified a
few test cases accordingly.
> Register ClientToken MasterKey in SecretManager after it is saved
> -----------------------------------------------------------------
>
> Key: YARN-1214
> URL: https://issues.apache.org/jira/browse/YARN-1214
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: resourcemanager
> Reporter: Jian He
> Assignee: Jian He
> Attachments: YARN-1214.patch
>
>
> Currently, app attempt ClientToken master key is registered before it is
> saved. This can cause problem that before the master key is saved, client
> gets the token and RM also crashes, RM cannot reloads the master key back
> after it restarts as it is not saved. As a result, client is holding an
> invalid token.
> We can register the client token master key after it is saved in the store.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira