File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1046,7 +1046,7 @@ public StreamsGroupDescribeResponseData.DescribedGroup asDescribedGroup(
1046
1046
.orElse (
1047
1047
topology .get (committedOffset )
1048
1048
.map (StreamsTopology ::asStreamsGroupDescribeTopology )
1049
- .orElse ( null )
1049
+ .orElseThrow (() -> new IllegalStateException ( "There should always be a topology for a streams group." ) )
1050
1050
)
1051
1051
);
1052
1052
members .entrySet (committedOffset ).forEach (
Original file line number Diff line number Diff line change @@ -129,9 +129,9 @@ private StreamsGroupDescribeResponseData.TopicInfo asStreamsGroupDescribeTopicIn
129
129
.setReplicationFactor (topicInfo .replicationFactor ())
130
130
.setTopicConfigs (
131
131
topicInfo .topicConfigs ().stream ().map (
132
- y -> new StreamsGroupDescribeResponseData .KeyValue ()
133
- .setKey (y .key ())
134
- .setValue (y .value ())
132
+ topicConfig -> new StreamsGroupDescribeResponseData .KeyValue ()
133
+ .setKey (topicConfig .key ())
134
+ .setValue (topicConfig .value ())
135
135
).toList ()
136
136
);
137
137
}
You can’t perform that action at this time.
0 commit comments