You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/12/25 15:28:41 UTC
[GitHub] [pulsar] zhouyangang edited a comment on issue #5840: Subscription
mode Key_Shared not working as expected
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:
users@infra.apache.org
With regards,
Apache Git Services