raft: change the log from debug to warning when uncommitted size exceeds max threshold

Signed-off-by: Benjamin Wang <wachao@vmware.com>
This commit is contained in:
Benjamin Wang 2022-11-07 17:17:48 +08:00
parent 5268db50ce
commit a671e3ebd1

View File

@ -643,7 +643,7 @@ func (r *raft) appendEntry(es ...pb.Entry) (accepted bool) {
}
// Track the size of this uncommitted proposal.
if !r.increaseUncommittedSize(es) {
r.logger.Debugf(
r.logger.Warningf(
"%x appending new entries to log would exceed uncommitted entry size limit; dropping proposal",
r.id,
)