Commit 7926d1c
rabbit_disk_monitor: Document NaN alarm behavior
When disk information is unavailable, the 'available' field in mount
records is set to 'NaN'. Due to Erlang term ordering, 'NaN' < Limit
evaluates to true, which triggers alarms for those mounts.
This is correct fail-safe behavior - when we cannot determine available
disk space, we block publishing to prevent potential disk exhaustion.
Add comments to alarmed_mounts/1 and alarmed_queue_types/1 explaining
this intentional behavior.1 parent 31a7508 commit 7926d1c
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
| 389 | + | |
388 | 390 | | |
389 | 391 | | |
390 | 392 | | |
| |||
397 | 399 | | |
398 | 400 | | |
399 | 401 | | |
| 402 | + | |
| 403 | + | |
400 | 404 | | |
401 | 405 | | |
402 | 406 | | |
| |||
0 commit comments