Skip to content

Commit ee652df

Browse files
committed
Promptly return a response when the validation parameters cannot be modified
1 parent a6e912d commit ee652df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

broker/src/main/java/org/apache/rocketmq/broker/processor/AdminBrokerProcessor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ private synchronized RemotingCommand updateBrokerConfig(ChannelHandlerContext ct
511511
if (validateBlackListConfigExist(properties)) {
512512
response.setCode(ResponseCode.NO_PERMISSION);
513513
response.setRemark("Can not update config in black list.");
514+
return response;
514515
}
515516

516517
log.info("updateBrokerConfig, new config: [{}] client: {} ", properties, ctx.channel().remoteAddress());

0 commit comments

Comments
 (0)