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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.3, 0.23.1, 2.0.0-alpha
    • 0.23.3, 2.0.2-alpha
    • fs
    • 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).

      Attachments

        1. HADOOP-8859-branch-0.23.patch
          2 kB
          Andrey Klochkov

        Issue Links

          Activity

            People

              aklochkov Andrey Klochkov
              aklochkov Andrey Klochkov
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: