Commit ea1b6d1
committed
[adapters] Fix ad-hoc processing for single-worker output on multihost.
When an operator produces output only to a subset of workers, for a single
host we created only as many partitions for ad-hoc processing as outputs.
For multi-host output, if we used the same model, then the coordinator
would have to inquire about the numbers of outputs on each host. Instead,
it's easier to simply assume that there is one output per worker and
produce an empty batch for the workers that produced no output. This
commit implements that model.
This fixes a out-of-range panic for multihost ad-hoc queries for output
operators that have fewer outputs than workers.
Signed-off-by: Ben Pfaff <blp@feldera.com>1 parent 2e98d22 commit ea1b6d1
1 file changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | 461 | | |
463 | 462 | | |
464 | 463 | | |
| |||
543 | 542 | | |
544 | 543 | | |
545 | 544 | | |
546 | | - | |
547 | | - | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
548 | 557 | | |
549 | 558 | | |
550 | 559 | | |
| |||
0 commit comments