Skip to content

Commit

Permalink
ReceiveUpdates spams the log, adjust the threshold higher (#9429) (#9430
Browse files Browse the repository at this point in the history
)

automerge
  • Loading branch information
mergify[bot] authored Apr 10, 2020
1 parent d5ae850 commit 310aa1a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand All @@ -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
);
Expand All @@ -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
);
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 310aa1a

Please sign in to comment.