@itentialopensource/adapter-kafkav2 0.25.0 → 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 +8 -2
- package/package.json +2 -2
- package/propertiesSchema.json +2 -1
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(
|
|
743
|
+
this.consumer = this.KafkaConsumerClient.consumer(consumerConfig);
|
|
738
744
|
} else {
|
|
739
|
-
this.consumer = this.KafkaClient.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.
|
|
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",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"ajv": "8.17.1",
|
|
43
43
|
"avro-schema-registry": "2.1.0",
|
|
44
44
|
"avsc": "5.4.21",
|
|
45
|
-
"axios": "1.
|
|
45
|
+
"axios": "1.12.2",
|
|
46
46
|
"fs-extra": "11.3.0",
|
|
47
47
|
"json-query": "2.2.2",
|
|
48
48
|
"kafkajs": "2.2.3",
|