Skip to content

Commit

Permalink
[ISSUE apache#8372] Add more test coverage for AdminBrokerProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
TanXiang7o authored Jul 17, 2024
1 parent 1588d65 commit 2d1e314
Show file tree
Hide file tree
Showing 2 changed files with 454 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1941,7 +1941,7 @@ private RemotingCommand getAllMessageRequestMode(ChannelHandlerContext ctx, Remo
final RemotingCommand response = RemotingCommand.createResponseCommand(null);

String content = this.brokerController.getQueryAssignmentProcessor().getMessageRequestModeManager().encode();
if (content != null && content.length() > 0) {
if (content != null && !content.isEmpty()) {
try {
response.setBody(content.getBytes(MixAll.DEFAULT_CHARSET));
} catch (UnsupportedEncodingException e) {
Expand Down
Loading

0 comments on commit 2d1e314

Please sign in to comment.