Skip to content

Commit

Permalink
Merge pull request #18832 from cescoffier/do-not-add-group-id-to-kafk…
Browse files Browse the repository at this point in the history
…a-config-if-empty

Only add the consumer group id if the Kafka config is not empty
  • Loading branch information
geoand authored Jul 20, 2021
2 parents f97f527 + eef7581 commit bde19ba
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 bde19ba

Please sign in to comment.