: provisioner: explicit monarch hostmesh shutdown #644
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
this change extends the explicit-shutdown work from the previous diff into the provisioner layer. the provisioner was still leaving
HostMeshinstances (including the implicit local host) alive at teardown, which meant their underlying processes could still be terminated viaSIGTERMduring interpreter or allocator shutdown. that put us back on theSIGTERMpath that produces the unwanted folly backtrace on exit.we now explicitly
await host_mesh.shutdown()for everyHostMeshmanaged by the provisioner, and then callshutdown_context()to tear down the remaining actor runtime state. this ensures all meshes and their processes exit cleanly under their own shutdown path rather than being dropped and signaled, keeping the shutdown sequence free ofSIGTERM-driven backtraces.i expect this diff together with
Differential Revision: D88856830