alibaba / alibaba/arthas

session 命令期望增加 session 列表参数

Open
#2,571 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
37.5k
Forks
7.6k
Avg merge
1d 22h
Merged PRs (30d)
4

Description

- [x] 我已经在 [issues](https://github.com/alibaba/arthas/issues) 里搜索,没有重复的issue。

### 背景

当多人操作一台机器执行 arthas 命令的时候, 其中一人执行 stop 会导致其他人员的 session 也全部中断退出。

### 期望

方案一:当前的 session 命令返回当前的 session 信息,增加 -a 参数,返回所有的 session 列表,在 stop 前手动 check 一下。
方案二:在执行 stop 时 如果有其他 session,返回其他 session 列表,询问是否需要强制退出,需要执行 stop -f 强制退出。

建议:方案一,在使用 api 的方案中也能使用,同时在command 模式下也能使用。

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing session and stop command entry points in both command and API modes. Compare the two proposed behaviors and confirm the chosen interface with maintainers; done means users can inspect sessions and avoid unintentionally stopping other users' sessions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.