hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tao Jie (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-6000) Set modifier of interface Listener in AllocationFileLoaderService to public
Date Wed, 14 Dec 2016 02:12:58 GMT
Tao Jie created YARN-6000:

             Summary: Set modifier of interface Listener in AllocationFileLoaderService to
                 Key: YARN-6000
                 URL: https://issues.apache.org/jira/browse/YARN-6000
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Tao Jie

We removed public modifier of {{AllocationFileLoaderService.Listener}} in YARN-4997 since
it trigger a findbugs warning. However it breaks Hive code in {{FairSchedulerShim}}. 
AllocationFileLoaderService allocsLoader = new AllocationFileLoaderService();
    allocsLoader.setReloadListener(new AllocationFileLoaderService.Listener() {
      public void onReload(AllocationConfiguration allocs) {
    try {
    } catch (Exception ex) {
      throw new IOException("Failed to load queue allocations", ex);
    if (allocConf.get() == null) {
      allocConf.set(new AllocationConfiguration(conf));
    QueuePlacementPolicy queuePolicy = allocConf.get().getPlacementPolicy();
    if (queuePolicy != null) {
      requestedQueue = queuePolicy.assignAppToQueue(requestedQueue, userName);
As a result we should set the modifier back to public.

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