[Improvement](meta) support return total statistics of all databases for command show proc '/jobs
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)
run buildall
run p0
run p0
run buildall
run compile
run p0
run p0
run p0
run buildall
run buildall
PR approved by at least one committer and no changes requested.
PR approved by anyone and no changes requested.