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

`CombinedFileRange.merge` should not convert disjoint ranges into overlapped ones

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.9, 3.5.0, 3.4.1
    • 3.4.1
    • common

    Description

      Currently, Hadoop has a bug to convert disjoint ranges into overlapped ones and eventually fails by itself.

      +  public void testMergeSortedRanges() {
      +    List<FileRange> input = asList(
      +        createFileRange(13816220, 24, null),
      +        createFileRange(13816244, 7423960, null)
      +    );
      +    assertIsNotOrderedDisjoint(input, 100, 800);
      +    final List<CombinedFileRange> outputList = mergeSortedRanges(
      +        sortRangeList(input), 100, 1001, 2500);
      +
      +    assertRangeListSize(outputList, 1);
      +    assertFileRange(outputList.get(0), 13816200, 7424100);
      +  }
      

      Attachments

        Issue Links

          Activity

            People

              mthakur Mukund Thakur
              dongjoon Dongjoon Hyun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: