Add error logging to dead slots (#7000)

This commit is contained in:
carllin 2019-11-16 02:54:51 -08:00 committed by GitHub
parent 7c32640a9b
commit 70322d1ff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -488,7 +488,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);
}

View File

@ -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",