hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varun Vasudev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-2570) Refactor code to not use SchedulerResourceTypes protobuf enum directly
Date Fri, 19 Sep 2014 10:41:33 GMT
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)

Mime
View raw message