You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Xuan Gong (JIRA)" <ji...@apache.org> on 2013/04/06 05:21:16 UTC

[jira] [Commented] (YARN-441) Clean up unused collection methods in various APIs

    [ https://issues.apache.org/jira/browse/YARN-441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13624306#comment-13624306 ] 

Xuan Gong commented on YARN-441:
--------------------------------

Remove the functions which are not used at all or just used in test cases from Yarn.apis.
AllocateRequest:
  int getAskCount();
  ResourceRequest getAsk(int index);
  void addAsk(ResourceRequest request);
  void removeAsk(int index);
  void clearAsks();
  ContainerId getRelease(int index);
  int getReleaseCount();
  void addRelease(ContainerId container);
  void removeRelease(int index);
  void clearReleases();

StartContainerResponse:
  void clearServiceResponse();
  void removeServiceResponse(String key);
  void setServiceResponse(String key, ByteBuffer value);

Those functions are deleted
                
> Clean up unused collection methods in various APIs
> --------------------------------------------------
>
>                 Key: YARN-441
>                 URL: https://issues.apache.org/jira/browse/YARN-441
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Siddharth Seth
>            Assignee: Xuan Gong
>         Attachments: YARN-441.1.patch
>
>
> There's a bunch of unused methods like getAskCount() and getAsk(index) in AllocateRequest, and other interfaces. These should be removed.
> In YARN, found them in. MR will have it's own set.
> AllocateRequest
> StartContaienrResponse

--
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