Skip to content

Commit

Permalink
Fix #18811 - Only add the consumer group id if the Kafka config is no…
Browse files Browse the repository at this point in the history
…t empty
  • Loading branch information
cescoffier committed Jul 19, 2021
1 parent 4d7a2bb commit eef7581
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public Map<String, Object> createKafkaRuntimeConfig(Config config, ApplicationCo
result.put(effectivePropertyName, value);
}

if (!result.containsKey(GROUP_ID) && app.name.isPresent()) {
if (!result.isEmpty() && !result.containsKey(GROUP_ID) && app.name.isPresent()) {
result.put(GROUP_ID, app.name.get());
}

Expand Down

0 comments on commit eef7581

Please sign in to comment.