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/04/30 11:11:51 UTC

[GitHub] [pulsar] shiv4289 commented on issue #4178: [Tests] Enable Schema Integration Tests

shiv4289 commented on issue #4178: [Tests] Enable Schema Integration Tests
URL: https://github.com/apache/pulsar/pull/4178#issuecomment-487912536
 
 
   > @shiv4289 FYI. There is some minor issues in existing schema autoupdate policy test. But I still can't reproduce the issue you mentioned in the slack channel :(
   
   @sijie  I am using 2.3.1 java client. And I can reproduce simply with this:
   
       public static void main(String[] args) throws PulsarClientException {
           try {
               client = PulsarClient.builder()
                       .serviceUrl(PULSAR_BROKER_URL)
                       .build();
               
               producer = client.newProducer(AvroSchema.of(SampleCreated.class))
                       .topic(PULSAR_TOPIC)
                       .create();
           } catch (PulsarClientException e) {
               e.printStackTrace();
           } finally {
               producer.close();
               client.close();
           }
       }
   
   The schema is AVRO and  is part of the POJO SampleCreated.class
   
   1. Run the code above with an avro schema.
   2. Delete a field in the avro schema and use new POJO to create producer.
   
   The producer create will crash with 
   
   > org.apache.pulsar.client.api.PulsarClientException$IncompatibleSchemaException: org.apache.pulsar.broker.service.schema.IncompatibleSchemaException: Incompatible schema used
   
   Please let me know if you need any help in reproducing the issue with the java client.
   
   

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