Commit 4772163
committed
Build ring before publishing pool strategy
marina_pool:sync/3 inserted {token_aware, N} into the foil table
before marina_ring:build/1 had compiled marina_ring_utils. A query
carrying a routing key in that window resolved the token_aware
strategy and called marina_ring_utils:lookup/1 on a module that did
not exist yet, crashing the caller with undef instead of getting
{error, marina_pool_not_started}.
Compile the ring first, so the strategy only becomes visible to
callers once the lookup module is loaded. This also applies to
topology re-syncs, where the same window reopened on every rebuild.1 parent 8196eb1 commit 4772163
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
89 | | - | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments