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

Ayush Saxena commented on YARN-11471:
-------------------------------------

[~slfan1989]/[~elgoiri] There are some 180 test failing in Yarn
https://ci-hadoop.apache.org/view/Hadoop/job/hadoop-qbt-trunk-java8-linux-x86_64/1604/testReport/junit/

One such example:
https://ci-hadoop.apache.org/view/Hadoop/job/hadoop-qbt-trunk-java8-linux-x86_64/1604/testReport/junit/org.apache.hadoop.yarn.server.federation.policies/TestRouterPolicyFacade/testGetHomeSubcluster/

I think the NPE is coming from the code introduced here:

{noformat}
  public void clearCache() {
    this.cache.clear();
    this.cache = null;
  }
{noformat}

I think the cache is {{null}} when we call clear,  I think adding a {{null}} 
check before calling clear might solve the problem.

Can you folks Please check, if this is related


> FederationStateStoreFacade Cache Support Caffeine
> -------------------------------------------------
>
>                 Key: YARN-11471
>                 URL: https://issues.apache.org/jira/browse/YARN-11471
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: federation
>    Affects Versions: 3.4.0
>            Reporter: Shilun Fan
>            Assignee: Shilun Fan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.4.1, 3.5.0
>
>
> FederationStateStoreFacade Cache Support Caffeine



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to