Skip to content

Commit 5dac3e5

Browse files
internal CG improvements
1 parent 9e70a19 commit 5dac3e5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

superstream-clients/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>ai.superstream</groupId>
88
<artifactId>superstream-clients</artifactId>
9-
<version>1.0.13</version>
9+
<version>1.0.14</version>
1010
<packaging>jar</packaging>
1111

1212
<name>Superstream Kafka Client Optimizer</name>

superstream-clients/src/main/java/ai/superstream/core/MetadataConsumer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ public class MetadataConsumer {
3232
public MetadataMessage getMetadataMessage(String bootstrapServers, Properties originalClientProperties) {
3333
Properties properties = new Properties();
3434

35-
// Copy all authentication-related and essential properties from the original client
35+
// Copy all authentication-related and essential properties from the original
36+
// client
3637
copyAuthenticationProperties(originalClientProperties, properties);
3738

3839
properties.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServers);
39-
properties.put(ConsumerConfig.GROUP_ID_CONFIG, "superstream-metadata-consumer-" + UUID.randomUUID());
4040
properties.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class.getName());
4141
properties.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class.getName());
4242
properties.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "earliest");
@@ -72,6 +72,7 @@ public MetadataMessage getMetadataMessage(String bootstrapServers, Properties or
7272
logger.warn("Failed to retrieve a message from the {} topic", METADATA_TOPIC);
7373
return null;
7474
}
75+
logger.info("Successfully retrieved a message from the {} topic", METADATA_TOPIC);
7576

7677
// Parse the message
7778
String json = records.iterator().next().value();

0 commit comments

Comments
 (0)