[ https://issues.apache.org/jira/browse/HADOOP-19291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887613#comment-17887613 ]
ASF GitHub Bot commented on HADOOP-19291: ----------------------------------------- mukund-thakur opened a new pull request, #7101: URL: https://github.com/apache/hadoop/pull/7101 ChecksumFileSystem creates the chunked ranges based on the checksum chunk size and then calls readVectored on Raw Local which may lead to overlapping ranges in some cases. <!-- Thanks for sending a pull request! 1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute 2. Make sure your PR title starts with JIRA issue id, e.g., 'HADOOP-17799. Your PR title ...'. --> ### Description of PR ### How was this patch tested? ### For code changes: - [ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')? - [ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation? - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)? - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, `NOTICE-binary` files? > `CombinedFileRange.merge` should not convert disjoint ranges into overlapped > ones > --------------------------------------------------------------------------------- > > Key: HADOOP-19291 > URL: https://issues.apache.org/jira/browse/HADOOP-19291 > Project: Hadoop Common > Issue Type: Bug > Components: common > Affects Versions: 3.3.9, 3.5.0, 3.4.1 > Reporter: Dongjoon Hyun > Priority: Major > Attachments: Screenshot 2024-09-28 at 22.02.01.png > > > Currently, Hadoop has a bug to convert disjoint ranges into overlapped ones > and eventually fails by itself. > {code:java} > + 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} > !Screenshot 2024-09-28 at 22.02.01.png! -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org