[Bug] [Regression] etcd mTLS doesn't work on 3.3.1
- Dominant language
- Java
- Stars
- 15.3k
- Forks
- 3.8k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 160
Description
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Read release policy
- [X] I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.
### Version
3.3.1 - server only, running on Amazon Linux 2
### Minimal reproduce step
- Setup etcd cluster with mTLS auth enabled
- Setup pulsar-broker with etcd configured for mTLS
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?
- [X] I'm willing to submit a PR!
Contributor guide
Research direction
Start by reviewing PR #22892 and the jetcd-related changes associated with the java.lang.NoSuchMethodError. Reproduce the issue using broker.conf and metadata-config/etcd.yaml with the provided mTLS settings, then verify that the connection works on Pulsar 3.3.1 as it did on 3.3.0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100