hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei-Chiu Chuang (Jira)" <j...@apache.org>
Subject [jira] [Created] (YARN-10772) Stable API GetApplicationsRequest#newInstance compatibility broken by YARN-8363
Date Tue, 18 May 2021 00:29:00 GMT
Wei-Chiu Chuang created YARN-10772:

             Summary: Stable API GetApplicationsRequest#newInstance compatibility broken by
                 Key: YARN-10772
                 URL: https://issues.apache.org/jira/browse/YARN-10772
             Project: Hadoop YARN
          Issue Type: Bug
          Components: api
    Affects Versions: 3.2.0
            Reporter: Wei-Chiu Chuang

YARN-8363 migrated our usage of commons-lang to commons-lang3 in 3.2.0.


Unfortunately, it changed the API signature of 
 * <p>
 * The request from clients to get a report of Applications matching the
 * giving application types in the cluster from the
 * <code>ResourceManager</code>.
 * </p>
 * @see ApplicationClientProtocol#getApplications(GetApplicationsRequest)
 * <p>Setting any of the parameters to null, would just disable that
 * filter</p>
 * @param scope {@link ApplicationsRequestScope} to filter by
 * @param users list of users to filter by
 * @param queues list of scheduler queues to filter by
 * @param applicationTypes types of applications
 * @param applicationTags application tags to filter by
 * @param applicationStates application states to filter by
 * @param startRange range of application start times to filter by
 * @param finishRange range of application finish times to filter by
 * @param limit number of applications to limit to
 * @return {@link GetApplicationsRequest} to be used with
 * {@link ApplicationClientProtocol#getApplications(GetApplicationsRequest)}
public static GetApplicationsRequest newInstance(
    ApplicationsRequestScope scope,
    Set<String> users,
    Set<String> queues,
    Set<String> applicationTypes,
    Set<String> applicationTags,
    EnumSet<YarnApplicationState> applicationStates,
    Range<Long> startRange,
    Range<Long> finishRange,
    Long limit) { {code}

It could cause problems when migrating applications, for example, from Hadoop 3.1 to 3.3.

This message was sent by Atlassian Jira

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

View raw message