[Bug] Ctrl-C does not terminating the current shell operation in pulsar shell #22671
Open
2 of 3 tasks
Labels
type/bug
The PR fixed a bug or issue reported a bug
Search before asking
Read release policy
Version
3.2.2
Minimal reproduce step
Issue Description:
In the Pulsar-Shell environment, when a user presses Ctrl-C during a shell operation to terminate the running shell operation, an exception
org.apache.pulsar.shell.PulsarShell$InterruptShellException
occurs but it does not terminate the running shell operation, it prints the below stack trace and the current execution keeps on running. Ideally, it should terminate the current execution.To reproduce it locally:
./bin/pulsar-shell
client produce my-topic -m "my-msg" -n 1000
orclient consume -s s1 my-topic -n 1000
What did you expect to see?
When the user presses Ctrl-C to terminate the currently running shell operation it should terminate the current execution and return to the shell terminal.
What did you see instead?
On pressing Ctrl-C during a shell operation, the current shell operation keeps on running. In addition, it also prints the below stack trace:
Anything else?
This PR is related which fixes #19218.
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: