[
https://issues.apache.org/jira/browse/YARN-9135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16768102#comment-16768102
]
Szilard Nemeth commented on YARN-9135:
--------------------------------------
Thanks for the comment [~pbacsko]!
I would rather keep this as it is. Using the immutable type in the definition
of the methods informs clients that the can't modify the collection.
It would be dangerous to use Map instead as clients don't have a clear
indication of immutability of the collection and if they modify them, it throws
a runtime exception.
> NM State store ResourceMappings serialization are tested with Strings instead
> of real Device objects
> ----------------------------------------------------------------------------------------------------
>
> Key: YARN-9135
> URL: https://issues.apache.org/jira/browse/YARN-9135
> Project: Hadoop YARN
> Issue Type: Improvement
> Reporter: Szilard Nemeth
> Assignee: Szilard Nemeth
> Priority: Major
> Attachments: YARN-9135.001.patch, YARN-9135.003.patch,
> YARN-9135.004.patch
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]