additional log to indicate that database can take a while to compact when opening an existing one. (#5359)

Signed-off-by: Daniel Lehrner <daniel.lehrner@consensys.net>
pull/5142/head
Daniel Lehrner 2 years ago committed by GitHub
parent 839bddcd48
commit 57b5198b2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      plugins/rocksdb/src/main/java/org/hyperledger/besu/plugin/services/storage/rocksdb/RocksDBKeyValueStorageFactory.java

@ -258,7 +258,10 @@ public class RocksDBKeyValueStorageFactory implements KeyValueStorageFactory {
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);

Loading…
Cancel
Save