fix(rivetkit-core): chunk apply_batch puts/deletes at 128#5046
Conversation
|
🚅 Deployed to the rivet-pr-5046 environment in rivet-frontend
|
PR Review: fix(rivetkit-core): chunk apply_batch puts/deletes at 128OverviewThis PR fixes a bug where CorrectnessThe chunking logic is correct. Looking at Issues1. Missing test for the >128 key path The existing 2. Payload size limit not addressed The engine also enforces 3. Non-atomicity of chunked writes (acknowledged) The TODO comment correctly describes the risk: a failure mid-loop leaves actor state partially persisted. The SQLite migration path in the TODO is the right long-term fix. No action needed now beyond the existing comment. Minor Notes
SummaryThe fix is logically correct and the non-atomicity trade-off is properly called out. The main gap is test coverage: recommend adding a test that saves more than 128 |
aac9634 to
f8fe5aa
Compare
7920c6d to
78dd055
Compare
78dd055 to
741181f
Compare
741181f to
3291dcc
Compare

copy of https://app.graphite.com/github/pr/rivet-dev/rivet/5012