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

   ### Describe the issue this Pull Request addresses
   
   Closes #20863.
   
   Flink Source V2 passes `compaction.max_memory` to CDC splits in MiB even 
though the reader expects bytes. With the default setting, the reader receives 
a 100-byte budget for its spillable image map.
   
   ### Summary and Changelog
   
   - Reuse the byte budget already computed by `HoodieTableSource` when 
building the Source V2 scan context.
   - Add a parameterized regression test that plans an incremental CDC read and 
checks the budget on the resulting split. Both cases (100 and 256 MiB) failed 
before the fix and passed afterward on Flink 2.2.1 with JDK 17.
   
   ### Impact
   
   CDC readers receive the configured memory budget when reconstructing before 
and after images. The default 100 MiB setting gives the split 104,857,600 bytes.
   
   ### Risk Level
   
   Low. The change reuses the existing MiB-to-bytes conversion, and the 
regression test covers both default and custom budgets.
   
   ### Documentation Update
   
   None.
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] Enough context is provided in the sections above
   - [x] Adequate tests were added if applicable
   


-- 
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