Added additional logging on BrokerService startup

This commit is contained in:
Dmytro Chebotarskyi 2022-11-14 15:58:30 -08:00 committed by Jean-Baptiste Onofré
parent 726cc68078
commit dc55028c00
3 changed files with 7 additions and 1 deletions

View File

@ -668,10 +668,13 @@ public class BrokerService implements Service {
persistenceAdapterToStart.setBrokerName(getBrokerName());
LOG.info("Using Persistence Adapter: {}", persistenceAdapterToStart);
if (deleteAllMessagesOnStartup) {
LOG.info("Deleting all messages on startup because deleteAllMessagesOnStartup configuration has been provided");
deleteAllMessages();
}
LOG.info("Starting Persistence Adapter: {}", persistenceAdapterToStart);
persistenceAdapterToStart.start();
LOG.info("Starting Temp Data Store");
getTempDataStore();
if (tempDataStore != null) {
try {
@ -685,6 +688,7 @@ public class BrokerService implements Service {
}
}
LOG.info("Starting Job Scheduler Store");
getJobSchedulerStore();
if (jobSchedulerStore != null) {
try {
@ -696,6 +700,7 @@ public class BrokerService implements Service {
throw exception;
}
}
LOG.info("Persistence Adapter successfully started");
}
private void startBroker(boolean async) throws Exception {

View File

@ -207,8 +207,8 @@ public class KahaDBStore extends MessageDatabase implements PersistenceAdapter,
public void doStart() throws Exception {
//configure the metadata before start, right now
//this is just the open wire version
LOG.info("Starting KahaDBStore");
configureMetadata();
super.doStart();
if (brokerService != null) {

View File

@ -457,6 +457,7 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
}
public void open() throws IOException {
LOG.info("Opening MessageDatabase");
if( opened.compareAndSet(false, true) ) {
getJournal().start();
try {