@itentialopensource/adapter-kafkav2 0.16.6 → 0.16.8
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/CHANGELOG.md +16 -0
- package/README.md +3 -1
- package/adapter.js +1 -1
- package/package.json +1 -1
- package/refs?service=git-upload-pack +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## 0.16.8 [12-10-2023]
|
|
3
|
+
|
|
4
|
+
* Fix bug to check allowed partition
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/notification-messaging/adapter-kafkav2!17
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.16.7 [09-27-2023]
|
|
11
|
+
|
|
12
|
+
* Big fixes logLevel and adapter restart
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/notification-messaging/adapter-kafkav2!15
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 0.16.6 [09-18-2023]
|
|
3
19
|
|
|
4
20
|
* Big fixes logLevel and adapter restart
|
package/README.md
CHANGED
|
@@ -129,7 +129,8 @@ This section defines **all** the properties that are available for the adapter,
|
|
|
129
129
|
"brokers": [
|
|
130
130
|
"broker:9093"
|
|
131
131
|
],
|
|
132
|
-
"clientId": "my-app"
|
|
132
|
+
"clientId": "my-app",
|
|
133
|
+
"logLevel": "INFO"
|
|
133
134
|
},
|
|
134
135
|
"producer": {
|
|
135
136
|
"requireAcks": 1,
|
|
@@ -299,6 +300,7 @@ The following properties are used to define the Kafka Client. These properties a
|
|
|
299
300
|
| producersasl | Object, SASL authentication configuration for producer. This is optional if you provide sasl. ex. { mechanism: 'plain', username: 'foo', password: 'bar' }|
|
|
300
301
|
| brokers | kafka broker:port list |
|
|
301
302
|
| clientId | Client-id is a logical grouping of clients with a meaningful name chosen by the client application |
|
|
303
|
+
| logLevel | There are 5 log levels available: NOTHING, ERROR, WARN, INFO, and DEBUG. INFO is configured by default |
|
|
302
304
|
| ssl | Object, options to be passed to the tls broker sockets, ex. { rejectUnauthorized: false }.|
|
|
303
305
|
| sasl | Object, SASL authentication configuration (Currently, supports PLAIN, SCRAM-SHA-256, SCRAM-SHA-512), ex. { mechanism: 'plain', username: 'foo', password: 'bar' }.|
|
|
304
306
|
|
package/adapter.js
CHANGED
|
@@ -643,7 +643,7 @@ class Kafkav2 extends AdapterBaseCl {
|
|
|
643
643
|
}
|
|
644
644
|
// find the topic here to change the offset
|
|
645
645
|
for (let t = 0; t < this.topicsEvents.length; t += 1) {
|
|
646
|
-
if (this.topicsEvents[t].topic === topic && (this.topicsEvents[t].partition === partition || this.topicsEvents[t].partition.includes(partition))) {
|
|
646
|
+
if (this.topicsEvents[t].topic === topic && (this.topicsEvents[t].partition === partition || (Array.isArray(this.topicsEvents[t].partition) && this.topicsEvents[t].partition.includes(partition)))) {
|
|
647
647
|
allowedPartition = true;
|
|
648
648
|
if (this.topicsEvents[t].offset < message.offset) {
|
|
649
649
|
this.topicsEvents[t].offset = message.offset;
|
package/package.json
CHANGED
|
Binary file
|