robshep commented on issue #8429:
URL: https://github.com/apache/pulsar/issues/8429#issuecomment-723169858


   Thank you,
   
   I'm afraid I don't know how to get the schema compatibility policy of a 
topic - please can you advise.  I don't see a cli command to show this)
   
   On the few occasions this has happened, it typically works OK after 
restarting the application.
   On once occasion it has failed to recover so I used a fresh broker cluster.  
(in testing environment so no data lost)
   
   You can see in the original post the NULL schema that is returned as a 
symptom of this problem, 
   whereas below is a proper one as logged upon connection. 
   
   
   
   ```2020-11-06 11:15:03,080 [pool-3-thread-1] INFO  
o.a.p.client.impl.schema.AvroSchema - Load schema reader for version(0), schema 
is : 
{"type":"record","name":"IngressMessageV1","namespace":"io.myapp.shared.pl","fields":[{"name":"attributes","type":["null",{"type":"map","values":"string"}],"default":null},{"name":"timestamp","type":"long"},{"name":"rawMessage","type":["null",{"type":"bytes","java-class":"[B"}],"default":null}]},
 schemaInfo: {
     "name": "myorg/myapp/ingress",
     "schema": {
       "type": "record",
       "name": "IngressMessageV1",
       "namespace": "io.myapp.shared.pl",
       "fields": [
         {
           "name": "attributes",
           "type": [
             "null",
             {
               "type": "map",
               "values": "string"
             }
           ]
         },
         {
           "name": "timestamp",
           "type": "long"
         },
         {
           "name": "rawMessage",
           "type": [
             "null",
             {
               "type": "bytes",
               "java-class": "[B"
             }
           ]
         }
       ]
     },
     "type": "AVRO",
     "properties": {
       "__alwaysAllowNull": "true",
       "__jsr310ConversionEnabled": "false"
     }
   }```


----------------------------------------------------------------
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:
[email protected]


Reply via email to