ignore endpoints with >1 adjacency in process rendering

This eliminates the worst effects of #2665.
This commit is contained in:
Matthias Radestock
2017-06-29 22:07:42 +01:00
parent 247c365e16
commit 708931f98a

View File

@@ -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)