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/07/28 12:56:51 UTC

[GitHub] [pulsar] sijie opened a new issue #4840: Pulsar schema admin API doesn't support uploading key/value schema

sijie opened a new issue #4840: Pulsar schema admin API doesn't support uploading key/value schema
URL: https://github.com/apache/pulsar/issues/4840
 
 
   **Describe the bug**
   
   Currently Pulsar schema api converts schema data (bytes) to string and uploads the string to Pulsar admin endpoint. It works for struct schemas and primitive schemas. Primitive schemas doesn't contain any schema data and struct schemas store UTF_8 encoded data. 
   
   However it doesn't work for key/value schema because it will contain illegal bytes in schema data.
   
   **To Reproduce**
   
   ```
   Schema<KeyValue<User, User>> schema = Schema.KeyValue(
       Schema.AVRO(User.class),
       Schema.AVRO(User.class)
   );
   
   admin.schema().createSchema(topic, schema.getSchemaInfo());
   ```
   
   **Expected behavior**
   
   Admin api should be able to upload key/value schema.
   
   

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