[
https://issues.apache.org/jira/browse/YARN-716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13664375#comment-13664375
]
Siddharth Seth commented on YARN-716:
-------------------------------------
Currently, YARN and HDFS have gone with different approaches of hiding the
underlying serialization. I'm not absolutely convinced that we need to hide the
underlying serialization, but I am in favour of having more control over the
records that are exposed to users. What's exposed rightnow is simple Java
interfaces - which allows YARN more control over the user facing APIs. This
happens to be backed by the PBImpls, and can be changed without breaking
compatibility. Protobuf doesn't really allow a custom toString, hashCode,
comparators or any other modification that we may want on the Records
themselves - YARN at least does use toString and comparators in some instances.
hashCode is also implemented for specific classes - but I'd have to go back and
check if this is doing anything special. I don't think the serialization
capabilities exposed by Protos need to be exposed to users either.
> Make ApplicationID immutable
> ----------------------------
>
> Key: YARN-716
> URL: https://issues.apache.org/jira/browse/YARN-716
> Project: Hadoop YARN
> Issue Type: Task
> Affects Versions: 2.0.4-alpha
> Reporter: Siddharth Seth
> Assignee: Siddharth Seth
> Attachments: YARN-716.txt
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira