databendlabs / databend

๐——๐—ฎ๐˜๐—ฎ, ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ & ๐—”๐—œ. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
https://docs.databend.com
Other
7.88k stars 751 forks source link

fix(storage): recluster endless loop #16831

Closed zhyass closed 1 week ago

zhyass commented 1 week ago

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

This PR addresses the issue of potential fragmentation during the recluster process, preventing the system from entering an infinite recluster loop. By optimizing the reclustering logic, this update minimizes the likelihood of producing excessively small fragments, enhancing system stability and effectively preventing infinite loop issues.

Tests

Type of change


This change isโ€‚Reviewable