You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "William Thompson (Jira)" <ji...@apache.org> on 2019/10/09 20:38:00 UTC
[jira] [Created] (CAMEL-14047) camel-pulsar: Allow Pulsar to
auto-select the unique producerName
William Thompson created CAMEL-14047:
----------------------------------------
Summary: camel-pulsar: Allow Pulsar to auto-select the unique producerName
Key: CAMEL-14047
URL: https://issues.apache.org/jira/browse/CAMEL-14047
Project: Camel
Issue Type: Improvement
Components: camel-pulsar
Affects Versions: 2.24.2, 3.x
Reporter: William Thompson
Current default producerName value causes a null producerName to be impossible when configuring from URI. This causes [the code regarding a null producerName in the PulsarProducer|[https://github.com/apache/camel/blob/10de4bab2e76046b9535128bf38bf67b80c3f3f4/components/camel-pulsar/src/main/java/org/apache/camel/component/pulsar/PulsarProducer.java#L60-L62]] to be impossible to hit from a URI. This forces anyone wanting to start 2 producers on the same topic in Camel to generate unique IDs and append them to each producerName value.
The fix proposed is defaulting producerName to null and, instead of generating a producerName on a null within Camel, to use Pulsar ProducerBuilder's automatic generation of a globally unique producerName value as described in the [ProducerBuilder documentation|[https://pulsar.apache.org/api/client/org/apache/pulsar/client/api/ProducerBuilder.html#producerName-java.lang.String-]].
--
This message was sent by Atlassian Jira
(v8.3.4#803005)