From 57b5198b2b903e9459490f787b6452bbf2b26e26 Mon Sep 17 00:00:00 2001 From: Daniel Lehrner Date: Thu, 20 Apr 2023 21:00:31 +0200 Subject: [PATCH] additional log to indicate that database can take a while to compact when opening an existing one. (#5359) Signed-off-by: Daniel Lehrner --- .../storage/rocksdb/RocksDBKeyValueStorageFactory.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBKeyValueStorageFactory.java b/plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBKeyValueStorageFactory.java index 93c3453b5ff..a6095968516 100644 --- a/plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBKeyValueStorageFactory.java +++ b/plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBKeyValueStorageFactory.java @@ -258,7 +258,10 @@ private int readDatabaseVersion(final BesuConfiguration commonConfiguration) thr final int databaseVersion; if (databaseExists) { databaseVersion = DatabaseMetadata.lookUpFrom(dataDir).getVersion(); - LOG.info("Existing database detected at {}. Version {}", dataDir, databaseVersion); + LOG.info( + "Existing database detected at {}. Version {}. Compacting database...", + dataDir, + databaseVersion); } else { databaseVersion = commonConfiguration.getDatabaseVersion(); LOG.info("No existing database detected at {}. Using version {}", dataDir, databaseVersion);