[ https://issues.apache.org/jira/browse/YARN-5611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rohith Sharma K S updated YARN-5611: ------------------------------------ Attachment: YARN-5611.0004.patch Attaching the patch for an update API server side implementation. Though patch looks bit heavy, most of the changes are in test. Apart from test modifications, the actual modification is as below. # There is protos added in ApplicationClientProtocol for updateApplicationTimeout. This adds 4 files corresponding request/response with PBImpl. # Similarly, there are protos added AppUpdateAttributes to store in StateStore. This adds 4 new files with PBImpl. The main module interaction point is {{ClientRMService-->RMAppImpl-->RMStateStore}}. The interaction flow is as below. *ClientRMService* : Accept incoming request from client and validate requested data. Trigger an event to RMAppImpl to update app timeout. And wait for update success response. In case of state store failure, roll back updated attributes. *RMAppImpl* : It handles new event APP_UPDATE and update in monitoring service. And trigger an event to update in State Store in order. *RMStateStore* : Store updated app state and set the future object which is passed by clientRMService. Once RMStateStore sets future object, clientRMService return to user as success. Pending task : Currently update response is returning empty. But response should contains updated value. I will update this behavior in next patches. > Provide an API to update lifetime of an application. > ---------------------------------------------------- > > Key: YARN-5611 > URL: https://issues.apache.org/jira/browse/YARN-5611 > Project: Hadoop YARN > Issue Type: Sub-task > Components: resourcemanager > Reporter: Rohith Sharma K S > Assignee: Rohith Sharma K S > Attachments: 0001-YARN-5611.patch, 0002-YARN-5611.patch, > 0003-YARN-5611.patch, YARN-5611.0004.patch, YARN-5611.v0.patch > > > YARN-4205 monitors an Lifetime of an applications is monitored if required. > Add an client api to update lifetime of an application. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org