zhiliang-wu commented on PR #11131:
URL: https://github.com/apache/seatunnel/pull/11131#issuecomment-4749444760

   Thank you for your review. I've just implemented your exact suggested fix:
   
   1. Moved the int chunkIndex = 0; declaration to the top of the 
discoverySplits method, outside of the sourceTableInfos.values() loop so the 
round-robin distribution persists seamlessly across all tables.
   2. Wrote a new unit test testMultiTableRoundRobinDistribution that simulates 
exactly the scenario you described (multiple tables pushing 1 or 2 splits each) 
and validates that the splits are still evenly distributed among the readers 
across the entire workload footprint.


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