Skip to content

Commit 2622236

Browse files
pablorfb-metafacebook-github-bot
authored andcommitted
Downgrade log on dropped children (#427)
Summary: Pull Request resolved: #427 On every cast a new child actor is created to listen to the cast response to prevent races, see D76086153 These children are ephemeral and dropped as soon as cast is over, leading to log spew P1859304760 We should not log an error if it is expected for child actors to be dropped while parent is still alive Reviewed By: highker Differential Revision: D77749480 fbshipit-source-id: 666eaa63af862b3d62fe64a7ee18009a286d4894
1 parent 62be858 commit 2622236

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

hyperactor/src/proc.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,10 +1515,11 @@ impl InstanceCell {
15151515

15161516
impl Drop for InstanceState {
15171517
fn drop(&mut self) {
1518-
if self.maybe_unlink_parent().is_some() {
1519-
tracing::error!(
1520-
"instance {} was dropped with parent still linked",
1521-
self.actor_id
1518+
if let Some(parent) = self.maybe_unlink_parent() {
1519+
tracing::debug!(
1520+
"instance {} was dropped with parent {} still linked",
1521+
self.actor_id,
1522+
parent.actor_id()
15221523
);
15231524
}
15241525
if self.proc.inner.instances.remove(&self.actor_id).is_none() {

0 commit comments

Comments
 (0)