Commit d965821
Fix message store crash when deleting non-existent files
Handle enoent errors gracefully in rabbit_msg_store:delete_file/2 to prevent
vhost supervisor crashes. The garbage collector would crash with badmatch
when attempting to delete files that were already removed, causing cascading
failures that brought down entire vhosts.
Changes:
- Replace pattern match on file:delete/1 with case expression
- Log debug message when file is already deleted (enoent)
- Continue with cleanup even if file doesn't exist
- Preserve existing error handling for other file deletion failures
Fixes vhost supervisor shutdown due to message store GC failures.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 50357a0 commit d965821
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2123 | 2123 | | |
2124 | 2124 | | |
2125 | 2125 | | |
2126 | | - | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
2127 | 2136 | | |
2128 | | - | |
2129 | 2137 | | |
2130 | 2138 | | |
2131 | 2139 | | |
| |||
0 commit comments