You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2022/01/07 13:51:22 UTC
[incubator-streampipes] branch dev updated: [hotfix] Fix bug in kafka adapter
This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 185c971 [hotfix] Fix bug in kafka adapter
185c971 is described below
commit 185c971f6575cfbad4491ac16ed4e55ae19712d8
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Fri Jan 7 14:51:11 2022 +0100
[hotfix] Fix bug in kafka adapter
---
.../java/org/apache/streampipes/messaging/kafka/SpKafkaProducer.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/streampipes-messaging-kafka/src/main/java/org/apache/streampipes/messaging/kafka/SpKafkaProducer.java b/streampipes-messaging-kafka/src/main/java/org/apache/streampipes/messaging/kafka/SpKafkaProducer.java
index a581612..f9dba54 100644
--- a/streampipes-messaging-kafka/src/main/java/org/apache/streampipes/messaging/kafka/SpKafkaProducer.java
+++ b/streampipes-messaging-kafka/src/main/java/org/apache/streampipes/messaging/kafka/SpKafkaProducer.java
@@ -62,6 +62,7 @@ public class SpKafkaProducer implements EventProducer<KafkaTransportProtocol>, S
this.brokerUrl = url;
this.topic = topic;
this.producer = new KafkaProducer<>(makeProperties(protocol));
+ this.connected = true;
}
// TODO backwards compatibility, remove later
@@ -72,6 +73,7 @@ public class SpKafkaProducer implements EventProducer<KafkaTransportProtocol>, S
this.brokerUrl = url;
this.topic = topic;
this.producer = new KafkaProducer<>(makePropertiesSaslPlain(protocol, username, password));
+ this.connected = true;
}
public void publish(String message) {