@itentialopensource/adapter-kafkav2 0.25.1 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/adapter.js CHANGED
@@ -731,12 +731,18 @@ class Kafkav2 extends AdapterBaseCl {
731
731
  this.producer = this.KafkaClient.producer(this.props.producer || {});
732
732
  }
733
733
 
734
+ // Ensure groupId has a default value
735
+ const consumerConfig = this.props.consumer || {};
736
+ if (!consumerConfig.groupId) {
737
+ consumerConfig.groupId = 'kafka-itential-adapter-group';
738
+ }
739
+
734
740
  if (this.props.client && this.props.client.consumersasl) {
735
741
  combinedProps.sasl = this.props.client.consumersasl;
736
742
  this.KafkaConsumerClient = new Kafka(combinedProps);
737
- this.consumer = this.KafkaConsumerClient.consumer(this.props.consumer || {});
743
+ this.consumer = this.KafkaConsumerClient.consumer(consumerConfig);
738
744
  } else {
739
- this.consumer = this.KafkaClient.consumer(this.props.consumer || {});
745
+ this.consumer = this.KafkaClient.consumer(consumerConfig);
740
746
  }
741
747
 
742
748
  const isPassingFiltering = (topic, message, filters) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-kafkav2",
3
- "version": "0.25.1",
3
+ "version": "0.25.2",
4
4
  "description": "Itential adapter to connect to kafka",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
@@ -122,7 +122,8 @@
122
122
  "type": "object",
123
123
  "properties": {
124
124
  "groupId": {
125
- "type": "string"
125
+ "type": "string",
126
+ "default": "kafka-itential-adapter-group"
126
127
  },
127
128
  "autoCommit": {
128
129
  "type": "boolean"