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

Szilard Nemeth commented on YARN-9460:
--------------------------------------

Hi [~BilwaST],
Oh, I see what is your question now.
I think we can do initialize the appropriate type of queueAclsManager based on 
instanceof checks.
Perhaps, a better way to do it is to introduce a SchedulerType enum with 3 
values: fair, capacity, fifo (if we don't have a similar thing in the codebase 
currently). 
Anyway, this could complicate a code a bit more so I'll let you decide what is 
the better way.

> QueueACLsManager and ReservationsACLManager should not use instanceof checks
> ----------------------------------------------------------------------------
>
>                 Key: YARN-9460
>                 URL: https://issues.apache.org/jira/browse/YARN-9460
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Szilard Nemeth
>            Assignee: Bilwa S T
>            Priority: Major
>
> QueueACLsManager and ReservationsACLManager should not use instanceof checks 
> for the scheduler type.
> Rather, we should abstract this into two classes: Capacity and Fair variants 
> of these ACL classes.
> QueueACLsManager and ReservationsACLManager could be abstract classes, but 
> the implementation is the decision of one who will work on this jira.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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