Skip to content

Commit

Permalink
[ISSUE apache#9014] Fix clusterAclConfigVersion command execution fai…
Browse files Browse the repository at this point in the history
…led (apache#9017)
  • Loading branch information
yx9o authored Dec 3, 2024
1 parent 78501c7 commit e104c02
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,12 @@ private RemotingCommand getBrokerAclConfigVersion(ChannelHandlerContext ctx, Rem

final RemotingCommand response = RemotingCommand.createResponseCommand(GetBrokerAclConfigResponseHeader.class);

if (!brokerController.getBrokerConfig().isAclEnable()) {
response.setCode(ResponseCode.SYSTEM_ERROR);
response.setRemark("The broker does not enable acl.");
return response;
}

final GetBrokerAclConfigResponseHeader responseHeader = (GetBrokerAclConfigResponseHeader) response.readCustomHeader();

try {
Expand Down

0 comments on commit e104c02

Please sign in to comment.