apache / pulsar

Apache Pulsar - distributed pub-sub messaging system
https://pulsar.apache.org/
Apache License 2.0
14.12k stars 3.57k forks source link

[Bug] [Regression] etcd mTLS doesn't work on 3.3.1 #23160

Open martin31821 opened 1 month ago

martin31821 commented 1 month ago

Search before asking

Read release policy

Version

3.3.1 - server only, running on Amazon Linux 2

Minimal reproduce step

example configuration:

# broker.conf:
metadataStoreConfigPath: /pulsar/metadata-config/etcd.yaml
metadataStoreUrl: "etcd:https://pulsar-etcd-headless:2379"
configurationMetadataStoreUrl: "etcd:https://pulsar-etcd-headless:2379"

# /pulsar/metadata-config/etcd.yaml
useTls: true
tlsProvider: "OPENSSL"
tlsTrustCertsFilePath: "/pulsar/etcd-cert/ca.crt"
tlsKeyFilePath: "/pulsar/etcd-cert/tls.key"
tlsCertificateFilePath: "/pulsar/etcd-cert/tls.crt"
authority: ""

What did you expect to see?

Working mTLS connection to etcd.

What did you see instead?

java.lang.NoSuchMethodError because of this PR: https://github.com/apache/pulsar/pull/22892 The mentioned PR is the last time, when jetcd has been touched.

Anything else?

It works fine on v3.3.0 with the above config. I'm willing to submit a PR, but I don't know how to fix it :|

Are you willing to submit a PR?

lhotari commented 1 month ago

java.lang.NoSuchMethodError because of this PR: https://github.com/apache/pulsar/pull/22892

@martin31821 Please share the full exception stack trace.