AnonHxy opened a new pull request, #15677:
URL: https://github.com/apache/pulsar/pull/15677
### Motivation
when `messageRoutingMode` is set `CustomPartition` and `messageRouter` is
not set, the exception message is :
```
When 'messageRouter' is set, 'messageRoutingMode' should be set as
CustomPartition
```
which will confuse the users
### Modifications
Correct the exceptions message
### Verifying this change
- [x] Make sure that the change passes the CI checks.
This change added tests and can be verified as follows:
-
`org.apache.pulsar.client.impl.ProducerBuilderImplTest#testProducerBuilderImplWhenMessageRoutingIsCustomPartitionAndMessageRouterNotSet`
### Documentation
- [x] `no-need-doc`
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]