Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11434

Correct the comment of ByteBufferReadable#read

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

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • documentation
    • None

    Description

      The following comment of ByteBufferReadable#read seems not correct, actually, the position of buf should be updated:

      After a successful call, buf.position() and buf.limit() should be
      -   * unchanged, and therefore any data can be immediately read from buf.
      -   * buf.mark() may be cleared or updated.
      

      Attachments

        1. HADOOP-11434.001.patch
          1 kB
          Dian Fu

        Issue Links

        Activity

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

          People

            dian.fu Dian Fu
            dian.fu Dian Fu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment