You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Varun Vasudev (JIRA)" <ji...@apache.org> on 2014/09/19 12:41:33 UTC

[jira] [Created] (YARN-2570) Refactor code to not use SchedulerResourceTypes protobuf enum directly

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)