Commit 50cae13
committed
rabbit_mnesia: add retries
Occasionally, clustering will fail with the log
as pasted before. I believe it's because of the parallel
node startup, sometimes leading to crashes.
Hopefully, with retries, we'll handle this more gracefully.
```
Feature flags: nodes `rmq-ct-cluster_size_3_2-2-21072@localhost` and `rmq-ct-cluster_size_3_2-1-21000@localhost` are compatible
Mnesia('rmq-ct-cluster_size_3_2-2-21072@localhost'): ** ERROR ** (ignoring core) ** FATAL ** mnesia_monitor crashed:
{{badmatch, <0.203.0>, Ref<0.1988436133.884998146.137464>}},
{mnesia_monitor, handle_info, 2, [{file, "mnesia_monitor.erl"}, {line, 583}]},
gen_server, try_handle_info, 3, [{file, "gen_server.erl"}, {line, 2434}]},
gen_server, handle_msg, 3, [{file, "gen_server.erl"}, {line, 2420}]},
proc_lib, init_p_do_apply, 3, [{file, "proc_lib.erl"}, {line, 333}]}]}
Error in process <0.300.0> on node 'rmq-ct-cluster_size_3_2-2-21072@localhost' with exit value:
{badarg,[{erlang,send,
[mnesia_locker,{release_tid,{tid,142,<24815.431.0>}}],
[{error_info,#{module => erl_erts_errors}}]},
{mnesia_locker,release_tid,1,[{file,"mnesia_locker.erl"},{line,128}]},
{mnesia_tm,commit_participant,7,
[{file,"mnesia_tm.erl"},{line,1828}]}]}
Application mnesia exited with reason: stopped
BOOT FAILED
===========
Exception during startup:
Exit:{killed,{gen_server,call,[<0.280.0>,{negotiate_protocol,['rmq-ct-cluster_size_3_2-1-21000@localhost']},infinity]}}
gen_server:call/3, line 1301
mnesia_monitor:call/1, line 232
rabbit_mnesia:-check_mnesia_consistency/2-fun-0-/2, line 1002
rabbit_mnesia:with_running_or_clean_mnesia/1, line 1036
rabbit_mnesia:check_cluster_consistency/2, line 719
lists:foldl/3, line 2466
rabbit_mnesia:check_cluster_consistency/0, line 680
rabbit_prelaunch_cluster:setup/1, line 27
```1 parent 2f382d9 commit 50cae13
1 file changed
+36
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
968 | 971 | | |
969 | 972 | | |
970 | 973 | | |
971 | 974 | | |
972 | 975 | | |
973 | 976 | | |
974 | | - | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
975 | 989 | | |
976 | 990 | | |
977 | 991 | | |
| |||
1011 | 1025 | | |
1012 | 1026 | | |
1013 | 1027 | | |
1014 | | - | |
1015 | | - | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
1016 | 1049 | | |
1017 | 1050 | | |
1018 | 1051 | | |
| |||
0 commit comments