Merge pull request #14698 from ahrtr/raft_warn_20221107

raft: change the log from debug to warning when uncommitted size exceeds threshold
This commit is contained in:
Benjamin Wang 2022-11-07 19:57:33 +08:00 committed by GitHub
commit f64bed6033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -646,7 +646,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,
)