Closed kjnilsson closed 1 week ago
osiris_log:orphaned_segments/1 crashes if unexpected files are present:
osiris_log:orphaned_segments/1
[38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> [[<<"UNEXPECTED_FILE">>],[]],[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> [{file,"src/osiris_log.erl"},{line,1822}]},[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> {osiris_log,maybe_fix_corrupted_files,1,[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> [{file,"src/osiris_log.erl"},{line,631}]},[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> {osiris_log,init,2,[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> [{file,"src/osiris_log.erl"},{line,530}]},[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> {osiris_replica,handle_continue,2,[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> [{file,"src/osiris_replica.erl"},[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> {line,175}]},[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> {gen_server,try_handle_continue,3,[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> [{file,"gen_server.erl"},{line,1085}]},[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> {gen_server,loop,7,[{file,"gen_server.erl"},{line,995}]},[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> {proc_lib,init_p_do_apply,3,[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> [{file,"proc_lib.erl"},{line,241}]}]}[0m [38;5;160m2024-11-08 07:18:24.261879+00:00 [error] <0.94299120.0> [0m
...
ignore unexpected files
No response
Part of the solution https://github.com/rabbitmq/osiris/pull/171.
https://github.com/rabbitmq/rabbitmq-server/pull/12704
Describe the bug
osiris_log:orphaned_segments/1
crashes if unexpected files are present:Reproduction steps
...
Expected behavior
ignore unexpected files
Additional context
No response