jolshan commented on code in PR #19276:
URL: https://github.com/apache/kafka/pull/19276#discussion_r3991462193


##########
tools/src/main/java/org/apache/kafka/tools/TransactionsCommand.java:
##########
@@ -254,6 +254,42 @@ void execute(Admin admin, Namespace ns, PrintStream out) 
throws Exception {
         }
     }
 
+    static class ForceTerminateTransactionsCommand extends TransactionsCommand 
{
+
+        ForceTerminateTransactionsCommand(Time time) {
+            super(time);
+        }
+
+        @Override
+        String name() {
+            return "forceTerminateTransaction";
+        }
+
+        @Override
+        void addSubparser(Subparsers subparsers) {
+            Subparser subparser = subparsers.addParser(name())
+                .description("Force abort an ongoing transaction on 
transactionalId")
+                .help("Force abort an ongoing transaction on transactionalId 
(requires administrative privileges)");
+
+            subparser.addArgument("--transactionalId")

Review Comment:
   We are still in the process of working on KIP-939 so in theory we could add 
it to the KIP. 😅 
   But we can also do a new KIP if we want.



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