Commit 2776f1d
committed
fix(oplog-collections-transformer): warn+skip on empty ALL_SITE_IDS instead of error-retry
Per PR #363 review: an empty/blank ALL_SITE_IDS (misconfig, or a partial deployment
that doesn't fan user status) made publishUserStatus return a transient error, so the
status event Nak-stormed to MAX_DELIVER (1000) before a loud Term — wasteful, and broke
partial deployments. Detect the no-destination case at the sent==0 point and skip
cleanly: one WARN log + onSkipped("status_no_sites") metric + migration.ErrSkipped
(Ack-skip, no retries). Detection stays at sent==0 so malformed multi-entry values
(e.g. ALL_SITE_IDS=",") still warn rather than silently ack. A startup hard-fail on
empty ALL_SITE_IDS is the planned permanent form (TODO).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012X9qhQT4NwmCHjdndwNtFD1 parent fbde695 commit 2776f1d
2 files changed
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 127 | + | |
| 128 | + | |
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
| |||
0 commit comments