Szilard Nemeth commented on YARN-9537:

Hi [~cane]!

Just a minor comment: In FSAppAttempt: Maybe don't need to initialize the 
boolean field as: 

 private boolean enableAMPreemption =

Since in the constructor, you have this code block: 

 if (scheduler.getConf() != null) {
      this.enableAMPreemption = scheduler.getConf()

[~cane], [~yufeigu]: Can you guys think of any case when scheduler.getConf() is 
If not, then we can remove the null check and the default value for the 
enableAMPreemption boolean field and rely on the 
value coming from 
{code}, completely.


> Add configuration to disable AM preemption
> ------------------------------------------
>                 Key: YARN-9537
>                 URL: https://issues.apache.org/jira/browse/YARN-9537
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: fairscheduler
>    Affects Versions: 3.2.0, 3.1.2
>            Reporter: zhoukang
>            Assignee: zhoukang
>            Priority: Major
>         Attachments: YARN-9537-002.patch, YARN-9537.001.patch, 
> YARN-9537.003.patch, YARN-9537.004.patch
> In this issue, i will add a configuration to support disable AM preemption.

This message was sent by Atlassian Jira

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