v.21.6Improvement

Fix Corner Case in MergeTree Inactive Parts Settings

Fix obscure corner case of MergeTree settings inactive_parts_to_throw_insert = 0 with inactive_parts_to_delay_insert > 0. #22947 (Azat Khuzhin).
Fixes a corner case in MergeTree settings when inactive_parts_to_throw_insert is set to 0 combined with inactive_parts_to_delay_insert greater than 0.

Why it matters

This fix addresses an obscure issue where the interaction between the settings inactive_parts_to_throw_insert = 0 and inactive_parts_to_delay_insert > 0 could cause unexpected behavior during insert operations into MergeTree tables. It ensures stability and predictable insert handling when these settings are configured.

How to use it

Use the settings inactive_parts_to_throw_insert and inactive_parts_to_delay_insert in your MergeTree table configuration as usual. This fix is applied internally to handle the case when inactive_parts_to_throw_insert is set to 0 together with a positive inactive_parts_to_delay_insert value, requiring no changes in user usage.