doris icon indicating copy to clipboard operation
doris copied to clipboard

[Improvement](meta) support return total statistics of all databases for command show proc '/jobs

Open Yulei-Yang opened this issue 2 years ago • 3 comments

currently, show proc jobs commamd can only used on a specific database, if a user want to see overall data of the whole cluster, he has to look into every database and sum them up, it's troublesome. now he can achieve it simply by giving a -1 as dbId.

mysql> show proc '/jobs/-1'; +---------------+---------+---------+----------+-----------+-------+ | JobType | Pending | Running | Finished | Cancelled | Total | +---------------+---------+---------+----------+-----------+-------+ | load | 0 | 0 | 0 | 2 | 2 | | delete | 0 | 0 | 0 | 0 | 0 | | rollup | 0 | 0 | 1 | 0 | 1 | | schema_change | 0 | 0 | 2 | 0 | 2 | | export | 0 | 0 | 0 | 3 | 3 | +---------------+---------+---------+----------+-----------+-------+

mysql> show proc '/jobs/-1/rollup'; +----------+------------------+---------------------+---------------------+------------------+-----------------+----------+---------------+----------+------+----------+---------+ | JobId | TableName | CreateTime | FinishTime | BaseIndexName | RollupIndexName | RollupId | TransactionId | State | Msg | Progress | Timeout | +----------+------------------+---------------------+---------------------+------------------+-----------------+----------+---------------+----------+------+----------+---------+ | 17826065 | order_detail | 2023-02-23 04:21:01 | 2023-02-23 04:21:22 | order_detail | rp1 | 17826066 | 6009 | FINISHED | | NULL | 2592000 | +----------+------------------+---------------------+---------------------+------------------+-----------------+----------+---------------+----------+------+----------+---------+ 1 row in set (0.01 sec)

Yulei-Yang avatar Mar 02 '23 09:03 Yulei-Yang

run buildall

Yulei-Yang avatar Mar 02 '23 11:03 Yulei-Yang

run p0

Yulei-Yang avatar Mar 03 '23 02:03 Yulei-Yang

run p0

Yulei-Yang avatar Mar 03 '23 03:03 Yulei-Yang

run buildall

Yulei-Yang avatar Mar 05 '23 08:03 Yulei-Yang

run compile

Yulei-Yang avatar Mar 05 '23 10:03 Yulei-Yang

run p0

Yulei-Yang avatar Mar 05 '23 10:03 Yulei-Yang

run p0

Yulei-Yang avatar Mar 05 '23 11:03 Yulei-Yang

run p0

Yulei-Yang avatar Mar 05 '23 14:03 Yulei-Yang

run buildall

Yulei-Yang avatar Mar 05 '23 14:03 Yulei-Yang

run buildall

Yulei-Yang avatar Mar 06 '23 09:03 Yulei-Yang

PR approved by at least one committer and no changes requested.

github-actions[bot] avatar Mar 06 '23 10:03 github-actions[bot]

PR approved by anyone and no changes requested.

github-actions[bot] avatar Mar 06 '23 10:03 github-actions[bot]