Skip to content

Commit

Permalink
[ISSUE #6194] The config enableControllerMode and enableDLegerCommitL…
Browse files Browse the repository at this point in the history
…og cannot both be true (#6195)
  • Loading branch information
RongtongJin authored Feb 27, 2023
1 parent ed84914 commit 7a45447
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ public static BrokerController buildBrokerController(String[] args) throws Excep
if (messageStoreConfig.isEnableDLegerCommitLog()) {
brokerConfig.setBrokerId(-1);
}

if (brokerConfig.isEnableControllerMode() && messageStoreConfig.isEnableDLegerCommitLog()) {
System.out.printf("The config enableControllerMode and enableDLegerCommitLog cannot both be true.%n");
System.exit(-4);
}

messageStoreConfig.setHaListenPort(nettyServerConfig.getListenPort() + 1);
brokerConfig.setInBrokerContainer(false);

Expand Down

0 comments on commit 7a45447

Please sign in to comment.