Skip to content

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Sep 15, 2025

  • Call Mod:format_state/1 if exported to possibly truncate huge states
  • Add more information about truncated ram_pending_ack and disk_pending_ack
  • Add log.error_logger_format_depth cuttlefish schema value

You can use this branch to test these changes - it calls exit() the first time a delivery is attempted to a consumer:

https://github.com/lukebakken/rmq-rabbitmq-server/tree/lukebakken/fix-format-status-test-exit

I've used it with PerfTest to crash the queue process:

cd rabbitmq-perf-test
make ARGS='--producers 1 --consumers 1 --pmessages 1010 --flag persistent' run

Finally, see this discussion!

#14349


This is an automatic backport of pull request #14523 done by Mergify.

* Call `Mod:format_state/1` if exported to possibly truncate huge states
* Add more information about truncated ram_pending_ack and disk_pending_ack
* Add `log.error_logger_format_depth` cuttlefish schema value
* Add `format_state/1` to `rabbit_channel`
* Add `log.summarize_process_state`, default is `false`, to enable summarizing process state for crash logs.
* Added `format_state` to `rabbit_classic_queue_index_v2` and `rabbit_classic_queue_store_v2`
* Ensure `rabbit_channel:format_state/1` uses `summarize_process_state_when_logged`
* Do not set `summarize_process_state_when_logged` value by default.
* Type specs

(cherry picked from commit db1291d)
@michaelklishin michaelklishin added this to the 4.2.0 milestone Sep 15, 2025
@michaelklishin michaelklishin merged commit 7445003 into v4.2.x Sep 15, 2025
287 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.2.x/pr-14523 branch September 15, 2025 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants