Skip to content

Commit

Permalink
[Bugfix] 修复BrokerConfigServiceImpl类中的getBrokerConfigByZKClient方法一定返回空…
Browse files Browse the repository at this point in the history
…列表 (#1086)
  • Loading branch information
jiangmb committed Nov 28, 2023
1 parent b6ea4ae commit bd7f4b2
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 bd7f4b2

Please sign in to comment.