Increase FlushChannel retry times (#27140)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/27153/head
yihao.dai 2023-09-16 00:41:20 +08:00 committed by GitHub
parent 895b94ab6b
commit c162c6a4c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ func (s *Server) Flush(ctx context.Context, req *datapb.FlushRequest) (*datapb.F
}
}
return nil
})
}, retry.Attempts(20)) // about 60s
if err != nil {
resp.Status = merr.Status(err)
return resp, nil

View File

@ -523,7 +523,7 @@ func (node *DataNode) Import(ctx context.Context, req *datapb.ImportTaskRequest)
func (node *DataNode) FlushChannels(ctx context.Context, req *datapb.FlushChannelsRequest) (*commonpb.Status, error) {
log := log.Ctx(ctx).With(zap.Int64("nodeId", paramtable.GetNodeID()),
zap.Time("flushTs", tsoutil.PhysicalTime(req.GetFlushTs())),
zap.Int("len(channels)", len(req.GetChannels())))
zap.Strings("channels", req.GetChannels()))
log.Info("DataNode receives FlushChannels request")