coderzc commented on code in PR #17439:
URL: https://github.com/apache/pulsar/pull/17439#discussion_r966524980
##########
pulsar-client-cpp/lib/ProducerImpl.cc:
##########
@@ -204,7 +206,8 @@ void ProducerImpl::handleCreateProducer(const
ClientConnectionPtr& cnx, Result r
}
// if the producer is lazy the send timeout timer is already running
- if (!conf_.getLazyStartPartitionedProducers()) {
+ if (!(conf_.getLazyStartPartitionedProducers() &&
+ conf_.getAccessMode() == ProducerConfiguration::Shared)) {
Review Comment:
Because the previous operation check the access mode.
```
if (conf_.getLazyStartPartitionedProducers() && conf_.getAccessMode() ==
ProducerConfiguration::Shared) {
// we need to kick it off now as it is possible that the connection
may take
// longer than sendTimeout to connect
startSendTimeoutTimer();
```
--
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]