You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rabbitmq_ct_helpers: Find crashes in RabbitMQ logs
If we find some crashes after stopping a node, the crash reports are
logged in Common Test HTML report and an assertion is fired.
Here is an example of a crash report found:
The console output:
* [khepri_store]
policy_ttl (00:00.574)
operator_policy_ttl (00:00.178)
operator_retroactive_policy_ttl (00:00.154)
operator_retroactive_policy_publish_ttl (00:01.677)
policy_SUITE > khepri_store
{error,
{{assertEqual,
[{module,rabbit_ct_broker_helpers},
{line,1050},
{expression,"CrashesCount"},
{expected,0},
{value,1}]},
[{rabbit_ct_broker_helpers,find_crashes_in_logs,1,
[{file,"rabbit_ct_broker_helpers.erl"},{line,1050}]},
{rabbit_ct_broker_helpers,stop_rabbitmq_nodes,1,
[{file,"rabbit_ct_broker_helpers.erl"},{line,1019}]},
{rabbit_ct_helpers,run_steps,2,
[{file,"rabbit_ct_helpers.erl"},{line,136}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1380}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}}
The Common Test HTML (truncated) report:
*** User 2022-06-10 14:58:50.687 ***
Looking up any crash reports in the node log files. If we find some, they will appear below:
*** User 2022-06-10 14:58:50.716 ***
gen_server termination:
2022-06-10 14:58:25.785158+02:00 [error] <0.1387.0> ** Generic server rabbit_node_monitor terminating
2022-06-10 14:58:25.785158+02:00 [error] <0.1387.0> ** Last message in was {'DOWN',#Ref<0.2117588230.1026555905.48245>,process,
2022-06-10 14:58:25.785158+02:00 [error] <0.1387.0> {rabbit,'rmq-ct-khepri_store-1-21000@localhost'},
2022-06-10 14:58:25.785158+02:00 [error] <0.1387.0> normal}
(...)
*** User 2022-06-10 14:58:50.717 ***
Found 1 crash reports
0 commit comments