One of customers found lots of the “maybe_fix_corrupted_files” error message after they upgraded the Rabbitmq code from 3.13.x to 4.0.3.
It also presented some orphaned .nfs files.
Customer used the NFS file system for the mnesia database
Some filesystems (e.g. NFS) create hidden files to deal with deletion of open files. The presence of a file: .nfs000000000000000 would stop the osiris log from initialising
R&D confirmed it was a bug and it should be fixed in 4.0.4
The workaround is to delete these .nfs hidden files or restart these rabbitmq nodes.