Commit d9350fe
committed
rabbit_stream_manager: Handle internal_error in stream declaration
`rabbit_stream_queue:declare/2` may fail to declare if the metadata
store operation(s) time out, like when the cluster has a minority of
online nodes. This would cause a case_clause error in
`rabbit_stream_manager:do_create_stream/4`. We can print a warning
log and return `{error, internal_error}` instead.1 parent 2d28353 commit d9350fe
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
559 | | - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
560 | 568 | | |
561 | 569 | | |
562 | 570 | | |
| |||
0 commit comments