hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giovanni Matteo Fumarola (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-9424) Change getDeclaredMethods to getMethods in FederationClientInterceptor#invokeConcurrent()
Date Fri, 29 Mar 2019 18:18:00 GMT

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

Giovanni Matteo Fumarola commented on YARN-9424:

Thanks [~shenyinjie] for the patch. From online:
{{"getDeclaredMethods}} includes all methods declared _by the class itself_, whereas {{getMethods}} returns
only public methods, but also those inherited from a base class."

We need this change since it includes other methods.

> Change getDeclaredMethods to getMethods in FederationClientInterceptor#invokeConcurrent()
> -----------------------------------------------------------------------------------------
>                 Key: YARN-9424
>                 URL: https://issues.apache.org/jira/browse/YARN-9424
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Shen Yinjie
>            Assignee: Shen Yinjie
>            Priority: Major
>         Attachments: YARN-9124_1.patch
> In YARN-8699, FederationClientInterceptor#invokeConcurrent uses getDeclaredMethods(),
which cannot recongnize some methods in ApplicationBaseProtocol (ApplicationClientProtocol
extend ApplicationBaseProtocol) .
> We have implemented some methods in FederationClientInterceptor, such as getApplications(),
GetQueueUserAclsInfo ...etc, when I run "yarn application -list" by connecting to yarn router,
router will throw exception.
> So change getDeclaredMethods() to getMethods().

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org

View raw message