v.24.5Improvement

Make RabbitMQ NACK Broken Messages

Make rabbitmq nack broken messages. Closes #45350. #60312 (Kseniia Sumarokova).
Enhances ClickHouse's RabbitMQ integration to nack (negatively acknowledge) broken messages, preventing their reprocessing.

Why it matters

This feature addresses the issue where malformed or broken messages in RabbitMQ were not properly acknowledged, causing repeated processing attempts and potential disruptions. By nacking these messages, ClickHouse ensures they are handled gracefully, improving stability and message processing reliability.

How to use it

The nack behavior for broken messages in RabbitMQ is enabled automatically in the updated ClickHouse version that includes this fix. Users consuming messages from RabbitMQ do not need to change their configurations, but should upgrade to the version containing this improvement.