Commit 7e14751
committed
fix(main): seed keyviz routes after distribution catalog applies
Codex round-1 P1 on PR #647: seedKeyVizRoutes ran BEFORE
setupDistributionCatalog. setupDistributionCatalog calls
distribution.EnsureCatalogSnapshot which applies a catalog snapshot
back into the engine — including the durable non-zero RouteIDs from
the catalog. Seeding earlier registered the placeholder RouteID=0
entries from buildEngine; subsequent dispatches (which resolve to
post-snapshot RouteIDs) found no slot and Observe dropped every
mutation, leaving the heatmap empty even when traffic was flowing.
Move the seed call to after setupDistributionCatalog returns so the
sampler sees the catalog's authoritative IDs. Existing tests cover
the seed mechanics; the ordering bug surfaced only in the live
startup path which the unit tests don't exercise.1 parent 8344cc0 commit 7e14751
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | 292 | | |
294 | 293 | | |
295 | 294 | | |
296 | 295 | | |
297 | 296 | | |
298 | 297 | | |
299 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
300 | 306 | | |
301 | 307 | | |
302 | 308 | | |
| |||
0 commit comments