Repository navigation
Commit 7da9e2d
buffered_table: migrate handler + 4 fixtures to unified state_* (Turn 2)
The worker's buffered_table_process handler and the buffered_table
fixtures' combine()/finalize() methods read/write the same storage rows,
so they must move to the unified API together (the original Turn 2
plan called for "one fixture" but that wasn't a coherent slice).
Migrated:
- worker.py buffered_table_process — reads/writes via state_get/put
under namespace b"buf", key = pack_int_key(state_id). When
func_cls.state_class is None (forthcoming use in Step 3 for
BufferInputFunction-via-log_append), the put step is skipped.
- BufferInputFunction.finalize — state_get instead of aggregate_get
- SumAllColumnsFunction.combine + finalize — state_get_many / state_put
- LargeStateFunction.finalize
- BatchIndexBufferInputFunction.combine + finalize
Subclasses (OrderedBufferInputFunction, BatchIndexBufferInputFunction
parents, all CrashOn* / HangOn* / Exception* fixtures) inherit the
migrated parents' methods, so no per-subclass changes needed.
Aggregate fixtures (vgi_sum, vgi_count, etc. via aggregate_update /
aggregate_combine RPC handlers) are NOT touched here — they go through
a different worker code path that still uses aggregate_state_* and
will migrate in Turn 3.
Verification: 27 buffered_table integration tests pass; 152 total
subprocess tests + 88 HTTP test cases (5364 assertions) green. The
state_* path is end-to-end functional through the C++ extension.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1f0337f commit 7da9e2d
2 files changed
Lines changed: 45 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
232 | 234 | | |
233 | | - | |
| 235 | + | |
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
| |||
558 | 560 | | |
559 | 561 | | |
560 | 562 | | |
561 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
562 | 567 | | |
563 | 568 | | |
564 | 569 | | |
565 | 570 | | |
566 | 571 | | |
567 | 572 | | |
568 | | - | |
| 573 | + | |
569 | 574 | | |
570 | 575 | | |
571 | 576 | | |
572 | | - | |
| 577 | + | |
573 | 578 | | |
574 | 579 | | |
575 | 580 | | |
576 | 581 | | |
577 | 582 | | |
578 | 583 | | |
579 | 584 | | |
580 | | - | |
581 | | - | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
582 | 589 | | |
583 | 590 | | |
584 | 591 | | |
| |||
587 | 594 | | |
588 | 595 | | |
589 | 596 | | |
590 | | - | |
| 597 | + | |
591 | 598 | | |
592 | 599 | | |
593 | 600 | | |
| |||
953 | 960 | | |
954 | 961 | | |
955 | 962 | | |
956 | | - | |
957 | | - | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
958 | 967 | | |
959 | | - | |
| 968 | + | |
960 | 969 | | |
961 | 970 | | |
962 | 971 | | |
| |||
1073 | 1082 | | |
1074 | 1083 | | |
1075 | 1084 | | |
1076 | | - | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1077 | 1089 | | |
1078 | 1090 | | |
1079 | 1091 | | |
1080 | 1092 | | |
1081 | | - | |
| 1093 | + | |
1082 | 1094 | | |
1083 | 1095 | | |
1084 | 1096 | | |
1085 | | - | |
| 1097 | + | |
1086 | 1098 | | |
1087 | 1099 | | |
1088 | 1100 | | |
1089 | 1101 | | |
1090 | 1102 | | |
1091 | 1103 | | |
1092 | | - | |
1093 | | - | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1094 | 1108 | | |
1095 | | - | |
| 1109 | + | |
1096 | 1110 | | |
1097 | 1111 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2417 | 2417 | | |
2418 | 2418 | | |
2419 | 2419 | | |
2420 | | - | |
2421 | | - | |
2422 | | - | |
2423 | | - | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
2424 | 2430 | | |
2425 | 2431 | | |
2426 | 2432 | | |
| |||
2453 | 2459 | | |
2454 | 2460 | | |
2455 | 2461 | | |
2456 | | - | |
2457 | | - | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
2458 | 2465 | | |
2459 | 2466 | | |
2460 | 2467 | | |
| |||
0 commit comments