congbobo184 commented on issue #4838: NPE is thrown when a consumer consumes a 
partitioned topic with struct schema
URL: https://github.com/apache/pulsar/issues/4838#issuecomment-521135032
 
 
   what are the steps for the recurrence of this problem and 
   ```
   ./pulsar-admin topics create-partitioned-topic -p 3 
persistent://public/default/test-npe3
   
    PulsarClient client = 
PulsarClient.builder().serviceUrl("pulsar://127.0.0.1:6650").build();
           Consumer<MessageProcess> consumer = client
                   .newConsumer(Schema.AVRO(MessageProcess.class))
                   .topic("persistent://public/default/test-npe3")
                   .subscriptionName("test")
                   .subscribe();
           while (true) {
               Message<MessageProcess> message = consumer.receive();
               consumer.acknowledge(message);
   
           }
   ```
   I did not reproduce it in this way.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to