mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
fix: Skip filling segmentID in indexBuildCh to prevent flush blocked (#30747)
issue: #30580 Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
This commit is contained in:
parent
e2330f02f8
commit
16b4c9a79e
@ -1044,7 +1044,10 @@ func (s *Server) postFlush(ctx context.Context, segmentID UniqueID) error {
|
||||
log.Error("flush segment complete failed", zap.Error(err))
|
||||
return err
|
||||
}
|
||||
s.buildIndexCh <- segmentID
|
||||
select {
|
||||
case s.buildIndexCh <- segmentID:
|
||||
default:
|
||||
}
|
||||
|
||||
insertFileNum := 0
|
||||
for _, fieldBinlog := range segment.GetBinlogs() {
|
||||
|
@ -468,7 +468,6 @@ func (s *Server) SaveBinlogPaths(ctx context.Context, req *datapb.SaveBinlogPath
|
||||
zap.Bool("isFlush", req.GetFlushed()),
|
||||
zap.Bool("isDropped", req.GetDropped()),
|
||||
zap.Bool("isImport", req.GetImporting()),
|
||||
zap.Any("startPositions", req.GetStartPositions()),
|
||||
zap.Any("checkpoints", req.GetCheckPoints()))
|
||||
|
||||
// for compatibility issue , if len(channelName) not exist, skip the check
|
||||
|
Loading…
Reference in New Issue
Block a user