NginxL opened a new pull request, #21108:
URL: https://github.com/apache/hudi/pull/21108

   ## Describe the issue this Pull Request addresses
   
   Fixes #21034.
   
   ## Summary and Changelog
   
   - Keep the input-format split array instead of copying it into an 
`ArrayList`.
   - Advance a cursor while opening lookup splits, avoiding repeated 
`ArrayList.remove(0)` shifts during cache reloads.
   - Reset the cursor when opening and closing the reader.
   - Add `testOpensInputSplitsInOrder` to verify that every split opens exactly 
once in order with the existing close/open transition.
   
   No code was copied from another implementation.
   
   ## Impact
   
   Reduces split-traversal overhead for lookup tables with many input splits. 
There is no public API, configuration, storage-format, or user-facing behavior 
change intended.
   
   ## Risk Level
   
   Low. The traversal order and close/open sequence remain the same; the new 
index is reset on reload and close. Existing rollback and close-failure tests 
cover the lifecycle paths.
   
   ## Validation and gaps
   
   - `git diff --check` passed and the complete diff was reviewed.
   - Pre-PR issue timeline and open-PR search found no duplicate implementation.
   - Maven tests were not run locally: this environment has neither Java nor 
Maven, and installing toolchains/dependencies is prohibited.
   - No JDK 17 microbenchmark or lookup-cache reload with real file I/O was 
run. The new ordering test and Flink module compilation are left to CI.
   
   ## Documentation Update
   
   None; there is no new feature or configuration.
   
   ## AI disclosure
   
   AI assistance was used to inspect the reader, implement the cursor change 
and test, and prepare validation notes. The final diff was reviewed locally; 
the author takes responsibility for the contribution. The commit includes a DCO 
`Signed-off-by` trailer.
   
   ## Contributor's checklist
   
   - [x] Read through the contributor's guide.
   - [x] Context and impact are provided above.
   - [x] A focused ordering test was added; local execution is blocked as noted.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to