Skip to content

Conversation

lukebakken
Copy link
Collaborator

@lukebakken lukebakken commented Sep 9, 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 100 --flag persistent' run

Finally, see this discussion!

#14349

@lukebakken lukebakken requested a review from dcorbacho September 9, 2025 17:02
@lukebakken lukebakken self-assigned this Sep 9, 2025
@lukebakken lukebakken requested review from michaelklishin, the-mikedavis, SimonUnge and dumbbell and removed request for dcorbacho September 9, 2025 17:02
@lukebakken lukebakken force-pushed the lukebakken/fix-format-status branch from ccdb859 to 459c0bc Compare September 9, 2025 18:31
@lukebakken lukebakken marked this pull request as draft September 10, 2025 14:06
@lukebakken lukebakken force-pushed the lukebakken/fix-format-status branch 2 times, most recently from fe3e6d9 to 9f51488 Compare September 10, 2025 17:44
@lukebakken lukebakken requested a review from lhoguin September 10, 2025 17:47
@lukebakken lukebakken force-pushed the lukebakken/fix-format-status branch from 9f51488 to 4a64e41 Compare September 10, 2025 17:52
@lukebakken lukebakken force-pushed the lukebakken/fix-format-status branch from 4a64e41 to 0263ae0 Compare September 10, 2025 18:18
@lukebakken lukebakken marked this pull request as ready for review September 10, 2025 18:18
@lukebakken lukebakken force-pushed the lukebakken/fix-format-status branch from 0263ae0 to 40772c2 Compare September 10, 2025 22:04
@lukebakken lukebakken force-pushed the lukebakken/fix-format-status branch from 40772c2 to 296c014 Compare September 12, 2025 16:20
@michaelklishin michaelklishin changed the title Code to clean up queue process state when crashed Shrink queue process state in case of abnormal queue [member] process termination to reduce peak memory footprint Sep 12, 2025
@lukebakken lukebakken marked this pull request as draft September 12, 2025 18:37
@lukebakken lukebakken force-pushed the lukebakken/fix-format-status branch from 296c014 to 2cf753b Compare September 12, 2025 22:27
* 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`
@lukebakken lukebakken force-pushed the lukebakken/fix-format-status branch from 2cf753b to 1022b9c Compare September 12, 2025 22:58
@lukebakken lukebakken requested a review from lhoguin September 12, 2025 22:59
@lukebakken lukebakken marked this pull request as ready for review September 12, 2025 22:59
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.

3 participants