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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.16.4, 0.17.0
    • Fix Version/s: 0.17.1
    • Component/s: io
    • Labels:
      None
    • Hadoop Flags:
      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.2.patch
          5 kB
          Todd Lipcon
        2. hadoop_mapfile.patch
          5 kB
          Todd Lipcon

          Activity

            People

            • Assignee:
              stack stack
              Reporter:
              tlipcon Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: