mirror of https://github.com/milvus-io/milvus.git
Watch channel if needed when allocating segmnets (#5482)
Signed-off-by: sunby <bingyi.sun@zilliz.com>pull/5779/head
parent
0b41031ce4
commit
9a54f1f72d
|
@ -92,6 +92,8 @@ func (s *Server) AssignSegmentID(ctx context.Context, req *datapb.AssignSegmentI
|
|||
//continue
|
||||
//}
|
||||
|
||||
s.cluster.watchIfNeeded(r.ChannelName, r.CollectionID)
|
||||
|
||||
segmentID, retCount, expireTs, err := s.segAllocator.AllocSegment(ctx,
|
||||
r.CollectionID, r.PartitionID, r.ChannelName, int64(r.Count))
|
||||
if err != nil {
|
||||
|
|
|
@ -542,7 +542,8 @@ func (s *Server) loadCollectionFromMaster(ctx context.Context, collectionID int6
|
|||
CollectionID: resp.CollectionID,
|
||||
})
|
||||
if err = VerifyResponse(presp, err); err != nil {
|
||||
log.Error("show partitions error", zap.String("collectionName", resp.Schema.Name), zap.Int64("collectionID", resp.CollectionID), zap.Error(err))
|
||||
log.Error("show partitions error", zap.String("collectionName", resp.Schema.Name),
|
||||
zap.Int64("collectionID", resp.CollectionID), zap.Error(err))
|
||||
return err
|
||||
}
|
||||
collInfo := &datapb.CollectionInfo{
|
||||
|
|
Loading…
Reference in New Issue