BigtableUploadService: recheck first_available_block (#26347)

Recheck first_available_block
This commit is contained in:
Tyera Eulberg 2022-07-01 10:42:23 -06:00 committed by GitHub
parent 47c596ff12
commit d6b53fb173
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@ impl BigTableUploadService {
Err(err) => {
warn!("bigtable: upload_confirmed_blocks: {}", err);
std::thread::sleep(std::time::Duration::from_secs(2));
if start_slot == 0 {
start_slot = blockstore.get_first_available_block().unwrap_or_default();
}
}
}
}