mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-04 16:29:24 +00:00
ignore endpoints with >1 adjacency in process rendering
This eliminates the worst effects of #2665.
This commit is contained in:
@@ -123,6 +123,13 @@ func MapEndpoint2Process(n report.Node, local report.Networks) report.Nodes {
|
||||
return report.Nodes{}
|
||||
}
|
||||
|
||||
if len(n.Adjacency) > 1 {
|
||||
// We cannot be sure that the pid is associated with all the
|
||||
// connections. It is better to drop such an endpoint than
|
||||
// risk rendering bogus connections.
|
||||
return report.Nodes{}
|
||||
}
|
||||
|
||||
id := report.MakeProcessNodeID(report.ExtractHostID(n), pid)
|
||||
node := NewDerivedNode(id, n).WithTopology(report.Process)
|
||||
node.Latest = node.Latest.Set(process.PID, timestamp, pid)
|
||||
|
||||
Reference in New Issue
Block a user