Commit 1a3442a
Fix assert with undeliverable message from comm actor (#1606)
Summary:
Pull Request resolved: #1606
Fix a panic in PythonActor::handle_undeliverable_message when the "sender" is the comm
actor. We need to update the sender back to the original "self" actor by using the headers
set in the envelope.
After this fix, instead of a panic we get a supervision error:
```
SupervisionError(
Actor ...wrapper_1xYczTZiTdb1[0] exited because of the following reason:
<PyActorSupervisionEvent: ...wrapper_1xYczTZiTdb1[0]: failed: serving
...wrapper_1xYczTZiTdb1[0]: processing error: a message from ...wrapper_1xYczTZiTdb1[0] to
...fail_1am38hE5fnus[0] was undeliverable and returned: Some("send error: channel closed;
multicast error: comm actor comm_1JgvjFbdpnUf[0] failed to deliver the cast message to the
dest actor; return to its original sender's port ...wrapper_1xYczTZiTdb1[0]
)
```
Not very terse, but better than a panic! This also allows any custom override of
handle_undeliverable_message to work.
Reviewed By: pablorfb-meta
Differential Revision: D84952942
fbshipit-source-id: b2cb36600ca89a03e7a85cfccd46ce6bcf2487cf1 parent 5531f59 commit 1a3442a
2 files changed
+67
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
327 | 334 | | |
328 | 335 | | |
329 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
493 | 498 | | |
494 | 499 | | |
495 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
496 | 542 | | |
497 | 543 | | |
498 | 544 | | |
| |||
537 | 583 | | |
538 | 584 | | |
539 | 585 | | |
540 | | - | |
| 586 | + | |
541 | 587 | | |
542 | | - | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
543 | 601 | | |
544 | 602 | | |
545 | 603 | | |
| |||
0 commit comments