pulsar-shell CTRL-C during shell operation should not print stacktrace #22655
Labels
type/enhancement
The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Search before asking
Motivation
In the Pulsar-Shell of 3.2.2, an exception specifically
org.apache.pulsar.shell.PulsarShell$InterruptShellException
occurs, disrupting the execution flow when a user presses Ctrl-C during shell operation and it prints the below stack trace.Solution
The problem is to simply NOT log the the full stack trace. To deal with this interruption smoothly, developers can use special tools for handling problems. They can wrap specific parts of their code in a safety net called a try-catch structure. This helps them catch and deal with the issue caused by pressing Ctrl-C, without showing all the confusing details(stack trace). Instead, they can show just print a message stating that the shell operation is interrupted.
Alternatives
No response
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: