From 615ba6d48dad6e8367711b983437fa494ce56a3f Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Mon, 22 Aug 2022 13:24:45 -0500 Subject: [PATCH] updates --- core/src/accounts_hash_verifier.rs | 4 +++- runtime/src/accounts_db.rs | 5 ++++- runtime/src/active_stats.rs | 4 +++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/core/src/accounts_hash_verifier.rs b/core/src/accounts_hash_verifier.rs index 8c2520c31d47fe..5dc4db2c720c48 100644 --- a/core/src/accounts_hash_verifier.rs +++ b/core/src/accounts_hash_verifier.rs @@ -130,7 +130,7 @@ impl AccountsHashVerifier { }; timings.calc_storage_size_quartiles(&accounts_package.snapshot_storages); - error!("storing data in ahv"); + error!("jw3: storing data in ahv"); let (accounts_hash, lamports) = accounts_package .accounts .accounts_db @@ -149,6 +149,8 @@ impl AccountsHashVerifier { timings, ) .unwrap(); + error!("jw3: done storing data in ahv"); + error!("looping after ahv"); loop { diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index a4580d3d64002d..21c09a0463bd12 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -6948,6 +6948,8 @@ impl AccountsDb { storages: &SortedStorages<'_>, mut stats: HashStats, ) -> Result<(Hash, u64), BankHashVerificationError> { + error!("jw3: calculate_accounts_hash_without_index"); + let _guard = self.active_stats.activate(ActiveStatItem::Hash); stats.oldest_root = storages.range().start; @@ -6963,7 +6965,7 @@ impl AccountsDb { // assert!(!(config.store_detailed_debug_info_on_failure && config.use_write_cache), "cannot accurately capture all data if accounts cache is being used"); - let reference = (storages.max_slot_inclusive() == 145811791).then(|| { + let reference = (false && storages.max_slot_inclusive() == 145811791).then(|| { let mut one = DashMap::>::new(); let cache_one = CacheHashData::new(&Path::new("/mnt/nvme1n1/succeeded_145811791_aug17")); let mut files = cache_one @@ -7057,6 +7059,7 @@ impl AccountsDb { scan_and_hash() }; + error!("jw: looking for differences"); use crate::accounts_hash::ZERO_RAW_LAMPORTS_SENTINEL; if let Some(r) = reference2 { for entry in r.iter() { diff --git a/runtime/src/active_stats.rs b/runtime/src/active_stats.rs index 905e3e6f3898fc..b7aa5a87ecb79c 100644 --- a/runtime/src/active_stats.rs +++ b/runtime/src/active_stats.rs @@ -65,10 +65,12 @@ impl ActiveStats { datapoint_info!("accounts_db_active", ("shrink", value, i64)) } ActiveStatItem::Hash => { + let result = datapoint_info!("accounts_db_active", ("hash", value, i64)); if value > 1 { panic!("too many calls"); } - datapoint_info!("accounts_db_active", ("hash", value, i64))}, + result + }, ActiveStatItem::Flush => datapoint_info!("accounts_db_active", ("flush", value, i64)), }; }