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

Kai Sasaki commented on YARN-5956:
----------------------------------

[~sunilg] Thanks.

{quote}
GetApplicationReportResponse getApplicationReport is now invoking getCallerUgi
{quote}

Is it correct? {{getCallerUgi}} does not seem to be called in 
{{getApplicationReport}}.

{quote}
 verifyUserAccessForRMApp internally calling checkAccess, correct?
{quote}
Yes, {{verifyUserAccessForUgi}} still need to call {{checkAccess}} because it 
throws exception with specific error message. But I checked and removed 
{{checkAccess}} like {{failApplicationAttempt}} since it does not do something 
other than logging. 

> Refactor ClientRMService
> ------------------------
>
>                 Key: YARN-5956
>                 URL: https://issues.apache.org/jira/browse/YARN-5956
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: resourcemanager
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Kai Sasaki
>            Assignee: Kai Sasaki
>            Priority: Minor
>         Attachments: YARN-5956.01.patch, YARN-5956.02.patch, 
> YARN-5956.03.patch, YARN-5956.04.patch, YARN-5956.05.patch, 
> YARN-5956.06.patch, YARN-5956.07.patch, YARN-5956.08.patch
>
>
> Some refactoring can be done in {{ClientRMService}}.
> - Remove redundant variable declaration
> - Fill in missing javadocs
> - Proper variable access modifier
> - Fix some typos in method name and exception messages



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to