mirror of https://github.com/milvus-io/milvus.git
fix: Watch channel task may stuck forever until qn become offline (#33394)
issue: #32901 pr #32814 introduce the compatible issue, when upgrade to milvus latest, the query coord may skip update dist due to the lastModifyTs doesn't changes. but for old version querynode, the lastModifyTs in GetDataDistritbuionResponse is always 0, which makes qc skip update dist. then qc will keep retry the task to watch channel again and again. this PR add compatible with old version querynode, when lastModifyTs is 0, qc will update it's data distribution. Signed-off-by: Wei Liu <wei.liu@zilliz.com>pull/33209/head
parent
5b86226465
commit
6275c75013
|
@ -98,7 +98,7 @@ func (dh *distHandler) handleDistResp(resp *querypb.GetDataDistributionResponse)
|
|||
node.SetLastHeartbeat(time.Now())
|
||||
|
||||
// skip update dist if no distribution change happens in query node
|
||||
if resp.GetLastModifyTs() <= dh.lastUpdateTs {
|
||||
if resp.GetLastModifyTs() != 0 && resp.GetLastModifyTs() <= dh.lastUpdateTs {
|
||||
log.RatedInfo(30, "skip update dist due to no distribution change", zap.Int64("lastModifyTs", resp.GetLastModifyTs()), zap.Int64("lastUpdateTs", dh.lastUpdateTs))
|
||||
} else {
|
||||
dh.lastUpdateTs = resp.GetLastModifyTs()
|
||||
|
|
Loading…
Reference in New Issue