Repository navigation
Commit a647e46
committed
fix(data): rekey send queue on server ID assignment and reject gates on retire
Bug 1: assignId rewrites entityId on pending operations but the per-entity
send queue stayed keyed by the local operation UUID. After confirm, later
edits using the server ID found no queue entry and dispatched immediately,
racing with writes still queued behind the create gate. Fix: move the queue
entry from the old key to the new key in assignId.
Bug 2: retire() cleared operations and queues but never rejected create
gates. Writes waiting on a gate promise hung forever since settle is also
forbidden on a retired store. Fix: reject all pending gates with
DataRetiredError before clearing.1 parent b75eabf commit a647e46
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
512 | 523 | | |
513 | 524 | | |
514 | 525 | | |
| |||
744 | 755 | | |
745 | 756 | | |
746 | 757 | | |
| 758 | + | |
747 | 759 | | |
| 760 | + | |
| 761 | + | |
748 | 762 | | |
749 | 763 | | |
750 | 764 | | |
| |||
0 commit comments