From 202463849aaf07ee8b3adef370e964e2eaf50c47 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Sun, 19 Nov 2023 18:50:37 -0600 Subject: [PATCH] log when appending exceeds available space (#34170) --- accounts-db/src/accounts_db.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index f4aadcb5a22c7d..b827449fcf1765 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -6310,6 +6310,14 @@ impl AccountsDb { .unwrap_or_default(); let data_len = (data_len + STORE_META_OVERHEAD) as u64; if !self.has_space_available(slot, data_len) { + info!( + "write_accounts_to_storage, no space: {}, {}, {}, {}, {}", + storage.accounts.capacity(), + storage.accounts.remaining_bytes(), + data_len, + infos.len(), + accounts_and_meta_to_store.len() + ); let special_store_size = std::cmp::max(data_len * 2, self.file_size); if self .try_recycle_and_insert_store(slot, special_store_size, std::u64::MAX)