未验证 提交 653ec6ce 编写于 作者: B bigsheeper 提交者: GitHub

Remove service time check in streaming search (#7253)

Signed-off-by: Nbigsheeper <yihao.dai@zilliz.com>
上级 801d52c0
......@@ -22,7 +22,6 @@ import (
"github.com/milvus-io/milvus/internal/log"
"github.com/milvus-io/milvus/internal/msgstream"
"github.com/milvus-io/milvus/internal/proto/segcorepb"
"github.com/milvus-io/milvus/internal/util/tsoutil"
)
type streaming struct {
......@@ -190,24 +189,24 @@ func (s *streaming) search(searchReqs []*searchRequest, collID UniqueID, partIDs
}
// TSafe less than searchTs means this vChannel is not available
ts := s.tSafeReplica.getTSafe(seg.vChannelID)
gracefulTimeInMilliSecond := Params.GracefulTime
if gracefulTimeInMilliSecond > 0 {
gracefulTime := tsoutil.ComposeTS(gracefulTimeInMilliSecond, 0)
ts += gracefulTime
}
tsp, _ := tsoutil.ParseTS(ts)
stp, _ := tsoutil.ParseTS(searchTs)
log.Debug("timestamp check in streaming search",
zap.Any("collectionID", collID),
zap.Any("serviceTime_l", ts),
zap.Any("searchTime_l", searchTs),
zap.Any("serviceTime_p", tsp),
zap.Any("searchTime_p", stp),
)
if ts < searchTs {
continue
}
//ts := s.tSafeReplica.getTSafe(seg.vChannelID)
//gracefulTimeInMilliSecond := Params.GracefulTime
//if gracefulTimeInMilliSecond > 0 {
// gracefulTime := tsoutil.ComposeTS(gracefulTimeInMilliSecond, 0)
// ts += gracefulTime
//}
//tsp, _ := tsoutil.ParseTS(ts)
//stp, _ := tsoutil.ParseTS(searchTs)
//log.Debug("timestamp check in streaming search",
// zap.Any("collectionID", collID),
// zap.Any("serviceTime_l", ts),
// zap.Any("searchTime_l", searchTs),
// zap.Any("serviceTime_p", tsp),
// zap.Any("searchTime_p", stp),
//)
//if ts < searchTs {
// continue
//}
searchResult, err := seg.search(plan, searchReqs, []Timestamp{searchTs})
if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册