Add logs for querynode

Signed-off-by: Xiangyu Wang <xiangyu.wang@zilliz.com>
This commit is contained in:
Xiangyu Wang 2021-03-30 15:00:14 +08:00 committed by yefu.chen
parent e823b56040
commit 8d66388b8c

View File

@ -140,6 +140,12 @@ func (s *searchCollection) receiveSearchMsg() {
zap.Int64("collectionID", sm.CollectionID))
serviceTime := s.getServiceableTime()
if sm.BeginTs() > serviceTime {
log.Debug("querynode::receiveSearchMsg: add to unsolvedMsgs",
zap.Any("sm.BeginTs", sm.BeginTs()),
zap.Any("serviceTime", serviceTime),
zap.Any("delta seconds", (sm.BeginTs()-serviceTime)/(1000*1000*1000)),
zap.Any("collectionID", s.collectionID),
)
s.addToUnsolvedMsg(sm)
continue
}
@ -173,6 +179,9 @@ func (s *searchCollection) doUnsolvedMsgSearch() {
default:
serviceTime, err := s.waitNewTSafe()
s.setServiceableTime(serviceTime)
log.Debug("querynode::doUnsolvedMsgSearch: setServiceableTime",
zap.Any("serviceTime", serviceTime),
)
if err != nil {
// TODO: emptySearch or continue, note: collection has been released
continue