track fec set turbine stats (#23989)

This commit is contained in:
Jeff Biseda
2022-04-04 14:44:21 -07:00
committed by GitHub
parent 6a7f6585ce
commit ee6bb0d5d3
4 changed files with 142 additions and 60 deletions

View File

@ -1682,6 +1682,9 @@ impl ReplayStage {
blockstore
.set_dead_slot(slot)
.expect("Failed to mark slot as dead in blockstore");
blockstore.slots_stats.mark_dead(slot);
rpc_subscriptions.notify_slot_update(SlotUpdate::Dead {
slot,
err: format!("error: {:?}", err),
@ -1788,6 +1791,9 @@ impl ReplayStage {
epoch_slots_frozen_slots,
drop_bank_sender,
);
blockstore.slots_stats.mark_rooted(new_root);
rpc_subscriptions.notify_roots(rooted_slots);
if let Some(sender) = bank_notification_sender {
sender
@ -2931,6 +2937,7 @@ impl ReplayStage {
accounts_background_request_sender,
highest_confirmed_root,
);
drop_bank_sender
.send(removed_banks)
.unwrap_or_else(|err| warn!("bank drop failed: {:?}", err));