Fix printing too many warnings (#27015)

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
This commit is contained in:
Jiquan Long 2023-09-12 13:39:17 +08:00 committed by GitHub
parent 3c74acb55c
commit 802a6a86c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,6 +200,11 @@ func (node *BaseNode) IsValidInMsg(in []Msg) bool {
return false
}
if len(in) == 0 {
// avoid printing too many logs.
return false
}
if len(in) != 1 {
log.Warn("Invalid operate message input", zap.Int("input length", len(in)))
return false