yugan95 commented on PR #8160:
URL: https://github.com/apache/paimon/pull/8160#issuecomment-4665805890

     Updated shrink logic to use a combined fixed-cap and ratio check, 
consistent with #8159:
   ```
     bufferSize > 4MB && bufferSize > recordLength * 4
   ```
     This replaces the previous fixed-threshold-only approach (bufferSize > 4MB 
&& length < 4MB) which would miss cases like a 100MB buffer with 5MB records 
(ratio 20x, clearly worth shrinking but previously retained because 5MB > 4MB).
   
     Tests updated to 6 cases covering the ratio-based scenarios.


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