[
https://issues.apache.org/jira/browse/HDFS-17633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun resolved HDFS-17633.
----------------------------------
Resolution: Duplicate
> `CombinedFileRange.merge` should not convert disjoint ranges into overlapped
> ones
> ---------------------------------------------------------------------------------
>
> Key: HDFS-17633
> URL: https://issues.apache.org/jira/browse/HDFS-17633
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: common
> Affects Versions: 3.3.9, 3.4.1, 3.5.0
> Reporter: Dongjoon Hyun
> Priority: Major
> Attachments: Screenshot 2024-09-28 at 21.59.09.png
>
>
> Currently, Hadoop has a bug to convert disjoint ranges into overlapped ones
> and eventually fails by itself.
> !Screenshot 2024-09-28 at 21.59.09.png!
> {code}
> + 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);
> + }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]