Skip to content

Commit

Permalink
chore(exex): more backfill debug logs (paradigmxyz#11476)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin authored and ebo committed Oct 14, 2024
1 parent db7a630 commit 1915bbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/exex/exex/src/backfill/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ where
}

fn execute_range(&mut self) -> Result<Chain, BlockExecutionError> {
debug!(
target: "exex::backfill",
range = ?self.range,
"Executing block range"
);

let mut executor = self.executor.batch_executor(StateProviderDatabase::new(
self.provider.history_by_block_number(self.range.start().saturating_sub(1))?,
));
Expand Down
2 changes: 2 additions & 0 deletions crates/exex/exex/src/backfill/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use reth_primitives::{BlockWithSenders, Receipt};
use reth_provider::{BlockReader, Chain, HeaderProvider, StateProviderFactory};
use reth_prune_types::PruneModes;
use reth_stages_api::ExecutionStageThresholds;
use reth_tracing::tracing::debug;
use tokio::task::JoinHandle;

/// The default parallelism for active tasks in [`StreamBackfillJob`].
Expand Down Expand Up @@ -118,6 +119,7 @@ where
// If we have range bounds, then we can spawn a new task for that range
if let Some((first, last)) = range_bounds {
let range = first..=last;
debug!(target: "exex::backfill", tasks = %this.tasks.len(), ?range, "Spawning new backfill task");
let mut job = BackfillJob {
executor: this.executor.clone(),
provider: this.provider.clone(),
Expand Down

0 comments on commit 1915bbd

Please sign in to comment.