This is an archive of the discontinued LLVM Phabricator instance.

[Orc] Handle hangup messages in SimpleRemoteEPC
ClosedPublic

Authored by sgraenitz on Oct 11 2021, 1:33 AM.

Details

Summary

On the controller-side, handle Hangup messages from the executor. The executor passed Error::success() or a failure message as payload.

Hangups cause an immediate disconnect of the transport layer. The disconnect function may be called later again and so implementations should be prepared. FDSimpleRemoteEPCTransport::disconnect() already has a flag to check that:
https://github.com/llvm/llvm-project/blob/cd1bd95d8707371da0e4f75cd01669c427466931/llvm/lib/ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.cpp#L112

Diff Detail

Event Timeline

sgraenitz created this revision.Oct 11 2021, 1:33 AM
sgraenitz requested review of this revision.Oct 11 2021, 1:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2021, 1:33 AM
lhames accepted this revision.Oct 11 2021, 7:30 AM

LGTM. Thanks Stefan!

This revision is now accepted and ready to land.Oct 11 2021, 7:30 AM
This revision was landed with ongoing or failed builds.Oct 11 2021, 12:05 PM
This revision was automatically updated to reflect the committed changes.