Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 310aa1a

Browse files
authored
ReceiveUpdates spams the log, adjust the threshold higher (#9429) (#9430)
automerge
1 parent d5ae850 commit 310aa1a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/src/cluster_info.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ impl ClusterInfo {
12401240
Protocol::PullRequest(filter, caller) => {
12411241
let start = allocated.get();
12421242
if !caller.verify() {
1243-
inc_new_counter_error!(
1243+
inc_new_counter_info!(
12441244
"cluster_info-gossip_pull_request_verify_fail",
12451245
1
12461246
);
@@ -1266,7 +1266,7 @@ impl ClusterInfo {
12661266
data.retain(|v| {
12671267
let ret = v.verify();
12681268
if !ret {
1269-
inc_new_counter_error!(
1269+
inc_new_counter_info!(
12701270
"cluster_info-gossip_pull_response_verify_fail",
12711271
1
12721272
);
@@ -1284,7 +1284,7 @@ impl ClusterInfo {
12841284
data.retain(|v| {
12851285
let ret = v.verify();
12861286
if !ret {
1287-
inc_new_counter_error!(
1287+
inc_new_counter_info!(
12881288
"cluster_info-gossip_push_msg_verify_fail",
12891289
1
12901290
);
@@ -1864,9 +1864,9 @@ impl Node {
18641864
}
18651865

18661866
fn report_time_spent(label: &str, time: &Duration, extra: &str) {
1867-
let count = duration_as_ms(time);
1868-
if count > 5 {
1869-
info!("{} took: {} ms {}", label, count, extra);
1867+
let time_ms = duration_as_ms(time);
1868+
if time_ms > 50 {
1869+
info!("{} took: {} ms {}", label, time_ms, extra);
18701870
}
18711871
}
18721872

0 commit comments

Comments
 (0)