[
https://issues.apache.org/jira/browse/YARN-5392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arun Suresh updated YARN-5392:
------------------------------
Attachment: YARN-5392.002.patch
Modified patch to make the {{SchedulerKey}} constructor private and created a
bunch of factory methods.
The idea is that SchedulerKey should ONLY be constructed from the
ResourceRequest / ApplicationSubmissionContext / SchedulerConfiguration /
SchedContainerChangeRequest etc. The internal composition of the
{{SchedulerKey}} and thereby the constructor need not be exposed.
for eg. Currently, the SchedulerKey is composed of only the Priority. YARN-4888
seeks to add the allocationRequestId. This can be trivially done by just
modifying the factory method that creates a SchedulerKey from a
ResourceRequest, no other code change is required..
The patch also fixes the javadoc, checkstyle and findbugs issues, which can be
fixed.
> Replace use of Priority in the Scheduling infrastructure with an opaque
> ShedulerKey
> -----------------------------------------------------------------------------------
>
> Key: YARN-5392
> URL: https://issues.apache.org/jira/browse/YARN-5392
> Project: Hadoop YARN
> Issue Type: Improvement
> Reporter: Arun Suresh
> Assignee: Arun Suresh
> Attachments: YARN-5392.001.patch, YARN-5392.002.patch
>
>
> Based on discussions in YARN-4888, this jira proposes to replace the use of
> {{Priority}} in the Scheduler infrastructure (Scheduler, Queues, SchedulerApp
> / Node etc.) with a more opaque and extensible {{SchedulerKey}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]