Skip to content

Commit

Permalink
[data ingestion] print local reader error (MystenLabs#17896)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix-o authored Jun 3, 2024
1 parent ed370e7 commit 6360972
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/sui-data-ingestion-core/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,10 @@ impl CheckpointReader {
async fn sync(&mut self) -> Result<()> {
let backoff = backoff::ExponentialBackoff::default();
let mut checkpoints = backoff::future::retry(backoff, || async {
self.read_local_files()
.await
.map_err(backoff::Error::transient)
self.read_local_files().await.map_err(|err| {
info!("transient local read error {:?}", err);
backoff::Error::transient(err)
})
})
.await?;

Expand Down

0 comments on commit 6360972

Please sign in to comment.