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

Naganarasimha G R commented on YARN-4596:
-----------------------------------------

Hi [~gtCarrera] IIUC you are referring to 
{{org.apache.hadoop.yarn.client.api.impl.TimelineWriter.doPosting(Object, 
String)}} 
{code}
 if (resp == null ||
        resp.getClientResponseStatus() != ClientResponse.Status.OK){
...
}
{code}
we need to check if resp Obj is available (not null) and if so then we need to 
try to get  {{resp.getEntity(TimelinePutResponse.class)}} and may be have a 
proper *toString* overrides to log the errors rights? 

> SystemMetricPublisher should not swallow error messages from 
> TimelineClient#putEntities
> ---------------------------------------------------------------------------------------
>
>                 Key: YARN-4596
>                 URL: https://issues.apache.org/jira/browse/YARN-4596
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: timelineserver
>            Reporter: Li Lu
>            Assignee: Li Lu
>
> We should report error messages from the returned TimelineResponse when 
> posting timeline entities through system metric publisher. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to