Skip to content

Commit

Permalink
[Bugfix] 修复BrokerConfigServiceImpl.getBrokerConfigByZKClient方法一定返回空的问题 (
Browse files Browse the repository at this point in the history
#1198)

修复获取ZK-Broker配置,出现空列表的问题

Co-authored-by: jiangmb <[email protected]>
  • Loading branch information
jiangminbing and jiangmb authored Jan 6, 2024
1 parent 68839a6 commit fcf0a08
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

import javax.annotation.PostConstruct;
import java.util.*;
import java.util.stream.Collectors;

import static com.xiaojukeji.know.streaming.km.common.enums.version.VersionEnum.*;

Expand Down Expand Up @@ -154,9 +155,11 @@ private Result<List<KafkaConfigDetail>> getBrokerConfigByZKClient(VersionItemPar
if (propertiesResult.failed()) {
return Result.buildFromIgnoreData(propertiesResult);
}
List<String> configKeyList = propertiesResult.getData().keySet().stream().map(Object::toString).collect(Collectors.toList());


return Result.buildSuc(KafkaConfigConverter.convert2KafkaBrokerConfigDetailList(
new ArrayList<>(),
configKeyList,
propertiesResult.getData()
));
}
Expand Down

0 comments on commit fcf0a08

Please sign in to comment.