Skip to content

Commit 705ecdd

Browse files
committed
Log unexpected stop db message
1 parent 8645241 commit 705ecdd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/inventory/controller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,6 +1474,11 @@ func (c *Controller) handleStopDatabaseServerHB(handle *upstreamHandle, name str
14741474
}
14751475
delete(handle.databaseServers, key)
14761476
handle.dbKeepAliveDelay.Remove(key)
1477+
slog.DebugContext(c.closeContext, "Unexpected stop database heartbeat message on control stream",
1478+
"database_name", key.name,
1479+
"server_id", handle.Hello().ServerID,
1480+
)
1481+
return nil
14771482
}
14781483

14791484
err := c.auth.DeleteDatabaseServer(c.closeContext, apidefaults.Namespace, key.hostID, key.name)

0 commit comments

Comments
 (0)