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 2022/01/14 19:09:12 UTC

[GitHub] [pulsar] aparajita89 opened a new issue #13765: schema created via admin extract api does not contain version

aparajita89 opened a new issue #13765:
URL: https://github.com/apache/pulsar/issues/13765


   **Describe the bug**
   when schema is created via `pulsar-admin schema upload ...` command, it creates the schema with version and schema info (JSON serialized version of SchemaAndMetadata). but when the schema is created via `pulsar-admin schemas extract ...` command, it created the schema with schema info only (JSON serialized version of SchemaInfo).
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Create a schema using upload command: `pulsar-admin schema upload SampleModel_v0.json`
   2. Create another schema version using extract command: `pulsar-admin schemas extract persistent://public/default/test-topic-7 -c com.flipkart.pulsarsample2.SampleModel -t json -j pulsarsample2-1.0-SNAPSHOT-jar-with-dependencies.jar`
   3. Get the schemas created using get command: `pulsar-admin schemas get persistent://public/default/test-topic-7 --version 0` and `pulsar-admin schemas get persistent://public/default/test-topic-7 --version 1`
   4. Compare the output of both commands to see the difference in data structure
   
   **Expected behavior**
   schema extract command should call the SchemaRegistryService to maintain consistent behavior
   
   


-- 
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-unsubscribe@pulsar.apache.org

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



[GitHub] [pulsar] aparajita89 closed issue #13765: schema created via admin extract api does not contain version

Posted by GitBox <gi...@apache.org>.
aparajita89 closed issue #13765:
URL: https://github.com/apache/pulsar/issues/13765


   


-- 
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-unsubscribe@pulsar.apache.org

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



[GitHub] [pulsar] aparajita89 commented on issue #13765: schema created via admin extract api does not contain version

Posted by GitBox <gi...@apache.org>.
aparajita89 commented on issue #13765:
URL: https://github.com/apache/pulsar/issues/13765#issuecomment-1013633598


   this is not a bug, i had made a mistake in my input json. closing this ticket.


-- 
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-unsubscribe@pulsar.apache.org

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