Commit 6aaac7e
fix(local-server-stress-tests): defer containerObjectMap registration during staging mode (#26257)
## Summary
- Fix containerObjectMap registration during staging mode to prevent
rollback issues
- When a data store is created during staging mode and then discarded,
the containerObjectMap.set() was rolled back, but the data store still
existed locally
- When the data store was later attached by storing its handle in a DDS,
other clients couldn't find it
## Changes
- Defer containerObjectMap registration during staging mode by adding to
a pending list
- Flush pending registrations when staging mode exits (both commit and
discard)
- This ensures registration ops are never part of the staged batch and
can't be rolled back
## Test plan
- [x] All 200 local-server-stress-tests pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: anthony-murphy-agent <[email protected]>
Co-authored-by: anthony-murphy <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>1 parent 6fd7a9c commit 6aaac7e
File tree
1 file changed
+28
-1
lines changed- packages/test/local-server-stress-tests/src
1 file changed
+28
-1
lines changedLines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
293 | 302 | | |
294 | 303 | | |
295 | 304 | | |
296 | 305 | | |
297 | 306 | | |
298 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
299 | 319 | | |
300 | 320 | | |
301 | 321 | | |
| |||
325 | 345 | | |
326 | 346 | | |
327 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
328 | 355 | | |
329 | 356 | | |
330 | 357 | | |
| |||
0 commit comments