From 7dd6ceeb49c4806f884c1590e30a526aa37df937 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 16 Nov 2019 03:22:13 -0800 Subject: [PATCH] Add error logging to dead slots (#7000) (#7001) automerge --- core/src/replay_stage.rs | 6 +++++- .../grafana-provisioning/dashboards/testnet-monitor.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/replay_stage.rs b/core/src/replay_stage.rs index c462cbb6fa..28333510a8 100644 --- a/core/src/replay_stage.rs +++ b/core/src/replay_stage.rs @@ -480,7 +480,11 @@ impl ReplayStage { bank.slot(), replay_result ); - datapoint_warn!("replay-stage-mark_dead_slot", ("slot", bank.slot(), i64),); + datapoint_error!( + "replay-stage-mark_dead_slot", + ("error", format!("error: {:?}", replay_result), String), + ("slot", bank.slot(), i64) + ); Self::mark_dead_slot(bank.slot(), blocktree, progress); } diff --git a/metrics/scripts/grafana-provisioning/dashboards/testnet-monitor.json b/metrics/scripts/grafana-provisioning/dashboards/testnet-monitor.json index ec08547564..87e38d72fb 100644 --- a/metrics/scripts/grafana-provisioning/dashboards/testnet-monitor.json +++ b/metrics/scripts/grafana-provisioning/dashboards/testnet-monitor.json @@ -4109,7 +4109,7 @@ "hide": false, "orderByTime": "ASC", "policy": "default", - "query": "SELECT host_id, slot FROM \"$testnet\".\"autogen\".\"replay-stage-mark_dead_slot\" WHERE $timeFilter ORDER BY time DESC ", + "query": "SELECT host_id, error, slot FROM \"$testnet\".\"autogen\".\"replay-stage-mark_dead_slot\" WHERE $timeFilter ORDER BY time DESC ", "rawQuery": true, "refId": "A", "resultFormat": "table",