Hadoop Common
  1. Hadoop Common
  2. HADOOP-8599

Non empty response from FileSystem.getFileBlockLocations when asking for data beyond the end of file

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.3, 0.23.1, 2.0.0-alpha
    • Fix Version/s: 0.23.3, 2.0.2-alpha
    • Component/s: fs
    • Labels:
      None

      Description

      When FileSystem.getFileBlockLocations(file,start,len) is called with "start" argument equal to the file size, the response is not empty. There is a test TestGetFileBlockLocations.testGetFileBlockLocations2 which uses randomly generated "start" and "len" arguments when calling FileSystem.getFileBlockLocations and the test fails randomly (when the generated start value equals to the file size).

        Issue Links

          Activity

          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Arun C Murthy made changes -
          Fix Version/s 3.0.0 [ 12320357 ]
          Matt Foley made changes -
          Target Version/s 1.1.0, 0.23.2, 2.0.1-alpha [ 12316501, 12319855, 12322467 ] 0.23.3, 3.0.0, 2.2.0-alpha [ 12320059, 12320357, 12322473 ]
          Matt Foley made changes -
          Link This issue relates to HADOOP-8612 [ HADOOP-8612 ]
          Todd Lipcon made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 0.23.3 [ 12320059 ]
          Fix Version/s 3.0.0 [ 12320357 ]
          Fix Version/s 2.2.0-alpha [ 12322473 ]
          Resolution Fixed [ 1 ]
          Andrey Klochkov made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Assignee Andrey Klochkov [ aklochkov ]
          Andrey Klochkov made changes -
          Field Original Value New Value
          Attachment HADOOP-8859-branch-0.23.patch [ 12536733 ]
          Andrey Klochkov created issue -

            People

            • Assignee:
              Andrey Klochkov
              Reporter:
              Andrey Klochkov
            • Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development