From 7555b4a00f3e41298e3d0fa58b2a1dd3f59646c8 Mon Sep 17 00:00:00 2001 From: wei liu Date: Fri, 10 May 2024 16:37:31 +0800 Subject: [PATCH] fix: Set segment to delegator failed due to wrong time unit in segment version (#32923) issue: #31468 pr: #31643 the fix in #31643 try to update segment version when set segment to delegator, but use wrong time unit as segment version, which make set segment failed, and block the balance channel. Signed-off-by: Wei Liu --- internal/querycoordv2/observers/leader_observer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/querycoordv2/observers/leader_observer.go b/internal/querycoordv2/observers/leader_observer.go index 4ba1c99d02562..8bb5e4e137986 100644 --- a/internal/querycoordv2/observers/leader_observer.go +++ b/internal/querycoordv2/observers/leader_observer.go @@ -166,7 +166,7 @@ func (o *LeaderObserver) findNeedLoadedSegments(leaderView *meta.LeaderView, dis PartitionID: s.GetPartitionID(), SegmentID: s.GetID(), NodeID: s.Node, - Version: time.Now().Unix(), + Version: time.Now().UnixNano(), Info: loadInfo, }) }