v.25.3Improvement
Add ProfileEvents::QueryPreempted, which has a similar logic
AddedProfileEvents::QueryPreempted, which has a similar logic toCurrentMetrics::QueryPreempted. #77015 (VicoWu).
Why it matters
This feature provides enhanced visibility into query preemption by enabling the collection of profiling metrics. It helps users monitor and analyze query preemptions more effectively, facilitating performance tuning and resource management.How to use it
Users can monitor theProfileEvents::QueryPreempted counter via profiling tools and queries that expose ProfileEvents metrics. This event integrates seamlessly with existing profiling infrastructure without additional configuration.