zhouyangang edited a comment on issue #5840: Subscription mode Key_Shared not 
working as expected
URL: https://github.com/apache/pulsar/issues/5840#issuecomment-568909235
 
 
   i have met this problem also....
   finally, i find when use Key_Shared subscription mode, the producer must set 
 enableBatching(false), like this:
   `client.newProducer(Schema.JSON(User.class))
                       .topic(topic)
                       **.enableBatching(false)**
                       
.messageRoutingMode(MessageRoutingMode.RoundRobinPartition)
                       .hashingScheme(HashingScheme.Murmur3_32Hash)
                       .create();`
   but i don't know why need this special set

----------------------------------------------------------------
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

Reply via email to