Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Jan 6, 2025
1 parent 69a8c95 commit 6962130
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* MIT License
*
* Copyright (c) 2024 bakdata
* Copyright (c) 2025 bakdata
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -31,6 +31,7 @@
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.stream.Collectors;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -92,6 +93,9 @@ public void close() {
*/
public boolean exists(final String groupName) {
final Collection<ConsumerGroupListing> consumerGroups = this.listGroups();
log.info("Found consumer groups: {}", consumerGroups.stream()
.map(ConsumerGroupListing::groupId)
.collect(Collectors.joining(", ")));
return consumerGroups.stream()
.anyMatch(c -> c.groupId().equals(groupName));
}
Expand Down

0 comments on commit 6962130

Please sign in to comment.