Varun Vasudev created YARN-2570:
-----------------------------------
Summary: Refactor code to not use SchedulerResourceTypes protobuf
enum directly
Key: YARN-2570
URL: https://issues.apache.org/jira/browse/YARN-2570
Project: Hadoop YARN
Issue Type: Improvement
Reporter: Varun Vasudev
Assignee: Varun Vasudev
>From MAPREDUCE-5279,
{quote}
2. It's not related to this patch, but I think we need to fix the problem:
SchedulerResourceTypes is the generated by protobuf, we shouldn't refer to it
directly, which will potentially break the binary compatibility if we upgrade
protobuf to new version. The other enums in proto adopt the following way:
defining a SchedulerResourceTypes java enum, and a SchedulerResourceTypesProto
protobuf enum. In ProtoUtils, defining convertTo/FromProtoFormat methods to
convert one object to the other. Please file ticket to for this issue.
{quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)