sijie commented on a change in pull request #5045: [client] Introduce
`batchingMaxBytes` setting in pulsar producer
URL: https://github.com/apache/pulsar/pull/5045#discussion_r317874811
##########
File path:
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerBuilderImpl.java
##########
@@ -212,6 +212,12 @@ private ProducerBuilderImpl(PulsarClientImpl client,
ProducerConfigurationData c
return this;
}
+ @Override
+ public ProducerBuilder<T> batchingMaxBytes(int batchingMaxBytes) {
+ conf.setBatchingMaxBytes(batchingMaxBytes);
Review comment:
We can't do that. Because the max message size is only set when a client
connects to a broker.
I explained that case in [previous
comment](https://github.com/apache/pulsar/pull/5045#issuecomment-525076754).
----------------------------------------------------------------
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]
With regards,
Apache Git Services