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

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development