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

MapFile.Reader getClosest() function returns incorrect results when before is true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.16.4, 0.17.0
    • 0.17.1
    • io
    • None
    • Reviewed

    Description

      The MapFile.Reader getClosest() method returns incorrect results due to an error in seekInternal(). The test case in trunk sets the index interval of the test MapFile to 1 which obscures the issue. There are several other errors in the test case as well that assert incorrect behavior for getClosest().

      I've got this fixed and tested, and will attach a patch.

      Attachments

        1. hadoop_mapfile.patch
          5 kB
          Todd Lipcon
        2. hadoop_mapfile.2.patch
          5 kB
          Todd Lipcon

        Activity

          People

            stack Michael Stack
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: