Skip to content

Commit

Permalink
fix: Set segment to delegator failed due to wrong time unit in segmen…
Browse files Browse the repository at this point in the history
…t 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 <[email protected]>
  • Loading branch information
weiliu1031 authored May 10, 2024
1 parent 996b79c commit 7555b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/querycoordv2/observers/leader_observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}
Expand Down

0 comments on commit 7555b4a

Please sign in to comment.