You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
durable: keep or remove the settledJSON holder between a settle and its journal Record #271
What it is. When a service or an actor settles, durable's result transform decodes the outcome. It then leaves the encoded JSON and the Go type in a shared holder (settledJSON), and the code that writes the journal Record reads them back with take(). If a path ever forgets that call, the next step journals the previous settle's bytes. No path forgets it today. Since #268, the service side has two take() calls, one right after the settle in serviceStep and a defensive clear in Recover. The actor side takes its outcome inside the transform.
Option A: leave it. There's no code change. The hazard stays contained inside durable, and the two call sites are documented.
Option B: return the outcome through the transform.ServiceRunner.WithResultTransform and ActorSystem.WithSettleTransform would each return the encoded JSON and the type name as one more value, and durable would read that value directly. That removes the holder and the take() calls.
The cost: a recording concern shows up in state's public signatures, which a host with no journal would also see.
Activity
perf(durable): cache each type's full spelling