Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBZ-3720 Error with debezium.sink.pulsar.client.serviceUrl #142

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import io.debezium.engine.DebeziumEngine;
import io.debezium.engine.DebeziumEngine.RecordCommitter;
import io.debezium.server.BaseChangeConsumer;
import io.debezium.util.Strings;

/**
* Implementation of the consumer that delivers the messages into a Pulsar destination.
Expand Down Expand Up @@ -77,8 +78,12 @@ public interface ProducerBuilder {
void connect() {
final Config config = ConfigProvider.getConfig();
try {
Map<String, Object> pulsarClientConfig = getConfigSubset(config, PROP_CLIENT_PREFIX);
Map<String, Object> camelCaseConfig = new HashMap<>();
pulsarClientConfig.forEach((key, value) -> camelCaseConfig.put(Strings.convertDotAndUnderscoreStringToCamelCase(key), value));

pulsarClient = PulsarClient.builder()
.loadConf(getConfigSubset(config, PROP_CLIENT_PREFIX))
.loadConf(camelCaseConfig)
.build();
}
catch (PulsarClientException e) {
Expand Down
Loading