Skip to content

Commit

Permalink
DBZ-3720 Error with debezium.sink.pulsar.client.serviceUrl and debezi…
Browse files Browse the repository at this point in the history
…um-server

DBZ-3720 Error with debezium.sink.pulsar.client.serviceUrl and debezium-server
  • Loading branch information
gustavolira committed Dec 13, 2024
1 parent d0a5065 commit e837ae4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;

import io.debezium.util.Strings;
import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;
import jakarta.enterprise.context.Dependent;
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

0 comments on commit e837ae4

Please sign in to comment.