v.22.5Improvement

Improved Query Execution with Memory Availability Check

If the required amount of memory is available before the selected query stopped, all waiting queries continue execution. Now we don't stop any query if memory is freed before the moment when the selected query knows about the cancellation. #35637 (Dmitry Novik).
Improved query cancellation handling to avoid stopping waiting queries if memory is freed before cancellation notification.

Why it matters

This feature ensures that if the required memory becomes available before the currently selected query is aware of a cancellation request, all waiting queries can continue execution without being prematurely stopped. This optimizes resource usage and prevents unnecessary query termination.

How to use it

No explicit user action is required. The improved memory and query cancellation management is applied automatically in query execution to avoid stopping queries when memory is freed in time.