You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "SagarJadhav30 (via GitHub)" <gi...@apache.org> on 2026/01/04 06:13:35 UTC
Re: [I] [Bug] Negative difference_ratio in file cache loading logic [doris]
SagarJadhav30 commented on issue #59504:
URL: https://github.com/apache/doris/issues/59504#issuecomment-3707776153
The existing cache consistency check assumes estimated_file_count >= db_block_count, but in real-world data lake workloads with many small files, this assumption breaks and produces negative discrepancy ratios. Negative ratios do not meaningfully represent divergence and can cause the system to skip filesystem reloads incorrectly.
This PR changes the calculation to use the absolute difference, ensuring the metric reflects discrepancy magnitude regardless of direction and making cache consistency decisions more robust.
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org