Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7236

[Docs] In the TimelineClient example, there are some confusing logic

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • docs, timelineclient
    • None

    Description

      Firstly, the entity and timelineClient are 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);

      Attachments

        1. YARN-7236.001.patch
          1 kB
          Sen Zhao

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Sen Zhao Sen Zhao
            Sen Zhao Sen Zhao

            Dates

              Created:
              Updated:

              Slack

                Issue deployment