aloyszhang commented on a change in pull request #14655:
URL: https://github.com/apache/pulsar/pull/14655#discussion_r825388164



##########
File path: 
pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdSchemas.java
##########
@@ -78,10 +78,14 @@ void run() throws Exception {
         @Parameter(description = "persistent://tenant/namespace/topic", 
required = true)
         private java.util.List<String> params;
 
+        @Parameter(names = { "-f",

Review comment:
       > I mean, is it safe to always use "delete -f" instead of normal delete? 
   It's not safe here.
   If we delete a schema like before, there will leave a new ledger for the 
schema. But with `-f`, all ledgers will be removed. 
   One place the ledgers of the schema shown is `internal-stats`,  with or 
without `-f`, we will get a different result.
   > Or delete forcefully should only be used to recover unexpected state (like 
your case, schema data deleted by offline process).
   Delete forcefully should be used if we want to delete schema completely or 
to recover an unexpected state




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to