BewareMyPower opened a new issue #8136:
URL: https://github.com/apache/pulsar/issues/8136


   Currently a schema could be deleted by REST API:
   
   ```http
   DELETE /schemas/:tenant/:namespace/:topic/schema
   ```
   
   However, the implementation is:
   
   ```java
       // org.apache.pulsar.broker.service.schema.SchemaRegistryServiceImpl
       public CompletableFuture<SchemaVersion> deleteSchema(String schemaId, 
String user) {
           byte[] deletedEntry = deleted(schemaId, user).toByteArray();
           return schemaStorage.put(schemaId, deletedEntry, new byte[]{});
       }
   ```
   
   I'm not familiar with schema and wonder if it's necessary to create a new 
ledger instead of delete the current ledger. (for performance or compatibility?)
   
   And `SchemaStorage#delete` is never called. Anyway, I though there should be 
a way to delete the schema storage from client side.


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