Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,10 @@ public boolean recoverAndInitService() throws CloneNotSupportedException {
result = this.messageStore.load();
}

if (brokerConfig.isPopConsumerKVServiceInit()) {
result = result && popConsumerService.load();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

init method in BrokerController#startBasicService

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clipboard_Screenshot_1750230321
init method in BrokerController#initialize

}

if (messageStoreConfig.isTimerWheelEnable()) {
result = result && this.timerMessageStore.load();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
import java.util.List;

public interface PopConsumerKVStore {
/**
* Load the kv store
*/
boolean load();

/**
* Starts the storage service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ protected boolean postLoad() {
return true;
}

@Override
public boolean load() {
return start();
}

public String getFilePath() {
return this.dbPath;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,10 @@ public PopConsumerLockService getConsumerLockService() {
return consumerLockService;
}

public boolean load() {
return this.popConsumerStore.load();
}

@Override
public void start() {
if (!this.popConsumerStore.start()) {
Expand Down
Loading