Commit 0d809f0
authored
chore: Ensure transition to falling back state based on synchronizer failure. (#207)
Addresses the possible race condition raised in the previous
initialization PR.
<img width="772" height="350" alt="image"
src="https://github.com/user-attachments/assets/464249fb-acc6-486d-bbfc-3ea3ddee1bdf"
/>
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Ensure InitializationTracker transitions to `FallingBack` when
synchronizers turn `Off` with FDv1 fallback reason, and allow fallback
from `NoData`.
>
> - **SDK Server (FDv2 InitializationTracker)**:
> - When `DataSourceCategory.Synchronizers` report `Off` with
`ErrorInfo.FDv1Fallback`, transition to `FallingBack`, then handle
`SynchronizersExhausted`.
> - Permit `Action.FallingBack` to transition `NoData` → `FallingBack`.
> - For `FallbackSynchronizers` entering `Initializing`, also transition
to `FallingBack`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
0fcbc78. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 3fa0a29 commit 0d809f0
File tree
1 file changed
+14
-0
lines changed- pkgs/sdk/server/src/Internal/FDv2DataSources
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
| |||
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
257 | 268 | | |
| 269 | + | |
258 | 270 | | |
259 | 271 | | |
260 | 272 | | |
| |||
264 | 276 | | |
265 | 277 | | |
266 | 278 | | |
| 279 | + | |
| 280 | + | |
267 | 281 | | |
268 | 282 | | |
269 | 283 | | |
| |||
0 commit comments