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 2018/01/04 03:17:54 UTC

[GitHub] sijie opened a new pull request #1025: Issue 1024: Message Router should take `numPartitions` as parameter in choosing partition

sijie opened a new pull request #1025: Issue 1024: Message Router should take `numPartitions` as parameter in choosing partition
URL: https://github.com/apache/incubator-pulsar/pull/1025
 
 
   ### Motivation
   
   currently message router doesn't expose number partition. it is hard for customized message router to get such information. It would be good to expose this information in message router.
   
   ### Modifications
   
   - introduce `TopicMetadata`
   - use `TopicMetadata` in message router for choosing partitions
   
   ### Result
   
   - deprecate the old `choosePartition` method
   - add test cases for all the message routers
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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