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: Open
    • Major
    • Resolution: Unresolved
    • 3.3.9, 3.5.0, 3.4.1
    • None
    • common
    • None

    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

              Unassigned Unassigned
              dongjoon Dongjoon Hyun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: