ReceiveUpdates spams the log, adjust the threshold higher (#9429)

This commit is contained in:
sakridge 2020-04-10 10:21:46 -07:00 committed by GitHub
parent 85feca305b
commit ae5a6419d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -1240,7 +1240,7 @@ impl ClusterInfo {
Protocol::PullRequest(filter, caller) => {
let start = allocated.get();
if !caller.verify() {
inc_new_counter_error!(
inc_new_counter_info!(
"cluster_info-gossip_pull_request_verify_fail",
1
);
@ -1266,7 +1266,7 @@ impl ClusterInfo {
data.retain(|v| {
let ret = v.verify();
if !ret {
inc_new_counter_error!(
inc_new_counter_info!(
"cluster_info-gossip_pull_response_verify_fail",
1
);
@ -1284,7 +1284,7 @@ impl ClusterInfo {
data.retain(|v| {
let ret = v.verify();
if !ret {
inc_new_counter_error!(
inc_new_counter_info!(
"cluster_info-gossip_push_msg_verify_fail",
1
);
@ -1864,9 +1864,9 @@ impl Node {
}
fn report_time_spent(label: &str, time: &Duration, extra: &str) {
let count = duration_as_ms(time);
if count > 5 {
info!("{} took: {} ms {}", label, count, extra);
let time_ms = duration_as_ms(time);
if time_ms > 50 {
info!("{} took: {} ms {}", label, time_ms, extra);
}
}