Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-6369

Document that BlockReader#available() can return more bytes than are remaining in the block

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      Let's document that BlockReader#available() can return more bytes than are remaining in the block.

      1. hdfs-6369-v3.txt
        0.6 kB
        Ted Yu
      2. hdfs-6369-v2.txt
        0.7 kB
        Ted Yu
      3. HDFS-6369.patch
        0.7 kB
        Chen He

        Activity

        Karthik Kambatla (Inactive) made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Colin Patrick McCabe made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Fix Version/s 2.5.0 [ 12326264 ]
        Resolution Fixed [ 1 ]
        Colin Patrick McCabe made changes -
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Colin Patrick McCabe made changes -
        Description Currently DFSClient.TCP_WINDOW_SIZE is directly returned.
        However, FSInputChecker.available(), in the superclass, may return value lower than the constant.
        Let's document that BlockReader#available() can return more bytes than are remaining in the block.
        Colin Patrick McCabe made changes -
        Summary RemoteBlockReader#available() should call FSInputChecker.available() Document that BlockReader#available() can return more bytes than are remaining in the block
        Ted Yu made changes -
        Attachment hdfs-6369-v3.txt [ 12648536 ]
        Ted Yu made changes -
        Attachment hdfs-6369-v2.txt [ 12648528 ]
        Chen He made changes -
        Assignee Chen He [ airbots ] Ted Yu [ yuzhihong@gmail.com ]
        Chen He made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Target Version/s 2.5.0 [ 12326264 ]
        Chen He made changes -
        Attachment HDFS-6369.patch [ 12644364 ]
        Chen He made changes -
        Field Original Value New Value
        Assignee Chen He [ airbots ]
        Ted Yu created issue -

          People

          • Assignee:
            Ted Yu
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development