Skip to content

Commit

Permalink
Merge pull request #14351 from spacewander/rca
Browse files Browse the repository at this point in the history
chore: log when an invalid watch request is received
  • Loading branch information
ahrtr committed Aug 18, 2022
2 parents ba0c7c3 + 508ce51 commit 27ffd7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/etcdserver/api/v3rpc/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,9 @@ func (sws *serverWatchStream) recvLoop() error {
}
default:
// we probably should not shutdown the entire stream when
// receive an valid command.
// receive an invalid command.
// so just do nothing instead.
sws.lg.Sugar().Infof("invalid watch request type %T received in gRPC stream", uv)
continue
}
}
Expand Down

0 comments on commit 27ffd7e

Please sign in to comment.