dlg99 opened a new pull request #10091:
URL: https://github.com/apache/pulsar/pull/10091
### Motivation
Found this while fixing a`CachedPulsarClientTest` test in pulsar-adapters
repo.
Two effectively equal configs were not equal:
```
ClientConfigurationData confData1 = new ClientConfigurationData();
confData1.setServiceUrl("pulsar://unknown:6650");
ClientConfigurationData confData2 = new ClientConfigurationData();
confData2.setServiceUrl("pulsar://unknown:6650");
assertEquals(confData1, confData2);
```
this results in `CachedPulsarClient.getOrCreate(conf)` creating new
PulsarClient for effectively the same config.
### Modifications
`@EqualsAndHashCode.Exclude` added to the fields that affected
`CachedPulsarClientTest`
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
This change added unittests
### Does this pull request potentially affect one of the following parts:
No
### Documentation
- Does this pull request introduce a new feature? No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]