[ 
https://issues.apache.org/jira/browse/YARN-7236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sen Zhao updated YARN-7236:
---------------------------
    Description: 
Firstly, the entity is not defined in the example;
Secondly, "TimelinePutResponse response" is defined twice;
Finally, there is a problem with sequential logic.
Like this:
{quote}
      TimelinePutResponse response = client.putEntities(entity);
      ...
      myEntity.addEvent(event);
      TimelinePutResponse response = timelineClient.putEntities(entity);
{quote}

  was:
Firstly, the entity is not defined in the example;
Secondly, "TimelinePutResponse response" is defined twice;
Finally, there is a problem with sequential logic.
Like this:
      TimelinePutResponse response = client.putEntities(entity);
      ...
      myEntity.addEvent(event);
      TimelinePutResponse response = timelineClient.putEntities(entity);


> [Docs] In the TimelineClient example, there are some confusing logic
> --------------------------------------------------------------------
>
>                 Key: YARN-7236
>                 URL: https://issues.apache.org/jira/browse/YARN-7236
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: docs, timelineclient
>            Reporter: Sen Zhao
>            Assignee: Sen Zhao
>            Priority: Trivial
>
> Firstly, the entity is not defined in the example;
> Secondly, "TimelinePutResponse response" is defined twice;
> Finally, there is a problem with sequential logic.
> Like this:
> {quote}
>       TimelinePutResponse response = client.putEntities(entity);
>       ...
>       myEntity.addEvent(event);
>       TimelinePutResponse response = timelineClient.putEntities(entity);
> {quote}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to