gaozhangmin edited a comment on issue #13431:
URL: https://github.com/apache/pulsar/issues/13431#issuecomment-1000689422


   Direct reason:
    `optTopic` is null:
   
![image](https://user-images.githubusercontent.com/9278488/147327914-e6c52668-4659-419e-a88d-58cd4391d3c1.png)
   
   Why?
   After step-3 createPartitionedTopic, This topic is not owned by any broker 
yet,  the assignment is triggered by the lookup request in producer or consumer 
action.
   If you add this before step-4,  this unit test will pass. you can try.  
@yuruguo 
   
`pulsarClient.newConsumer().subscriptionName("subscriptionName").topic(topic).subscribe();`
 
   


-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to