mirror of https://github.com/milvus-io/milvus.git
fix: RootCoord panic during check health (#34541)
issue: #34540 Signed-off-by: Wei Liu <wei.liu@zilliz.com>pull/34558/head
parent
2f70bbed88
commit
3c7046353a
|
@ -308,12 +308,14 @@ func CheckTimeTickLagExceeded(ctx context.Context, queryCoord types.QueryCoordCl
|
|||
|
||||
for _, dataNodeMetric := range dataCoordTopology.Cluster.ConnectedDataNodes {
|
||||
dm := dataNodeMetric.QuotaMetrics
|
||||
if dm.Fgm.NumFlowGraph > 0 && dm.Fgm.MinFlowGraphChannel != "" {
|
||||
minTt, _ := tsoutil.ParseTS(dm.Fgm.MinFlowGraphTt)
|
||||
delay := now.Sub(minTt)
|
||||
if dm != nil {
|
||||
if dm.Fgm.NumFlowGraph > 0 && dm.Fgm.MinFlowGraphChannel != "" {
|
||||
minTt, _ := tsoutil.ParseTS(dm.Fgm.MinFlowGraphTt)
|
||||
delay := now.Sub(minTt)
|
||||
|
||||
if delay.Milliseconds() >= maxDelay.Milliseconds() {
|
||||
dataNodeTTDelay.Insert(dm.Fgm.MinFlowGraphChannel, delay)
|
||||
if delay.Milliseconds() >= maxDelay.Milliseconds() {
|
||||
dataNodeTTDelay.Insert(dm.Fgm.MinFlowGraphChannel, delay)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue