Skip to content

[feature] show processlist supported. - #10782

Merged
mergify[bot] merged 3 commits into
matrixorigin:mainfrom
volgariver6:issue10359
Jul 21, 2023
Merged

mergify[bot] merged 3 commits into
matrixorigin:mainfrom
volgariver6:issue10359

Conversation

@volgariver6

Copy link
Copy Markdown
Contributor

Show information of all sessions on CN servers. For sys tenant, show all sessions; for common tenant, show the sessoins that are started by the tenant.

There three ways to show processlist:

  1. SHOW PROCESSLIST;
  2. SELECT * FROM processlist() a;
  3. SELECT * FROM information_schema.processlist;

The result is as belows:

        node_id: dd1dccb4-4d3c-41f8-b482-5251dc7a41bf
        conn_id: 1201
     session_id: d5e31e62-26b4-11ee-9cf1-f644820d18b1
        account: sys
           user: dump
           host: 127.0.0.1:16001
             db: test
  session_start: 2023-07-20 04:21:01.946414
        command: COM_QUERY
           info: select * from information_schema.processlist
         txn_id: 87e2a8b7470d4077b6e50748d99b2a73
   statement_id: fec3c71e-26b4-11ee-9cf2-f644820d18b1
 statement_type: Select
     query_type: DQL
sql_source_type: external_sql
    query_start: 2023-07-20 04:22:10.527457

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #10359

What this PR does / why we need it:

@volgariver6
volgariver6 force-pushed the issue10359 branch 2 times, most recently from b3e0f21 to 1007b46 Compare July 20, 2023 05:33
@volgariver6
volgariver6 force-pushed the issue10359 branch 4 times, most recently from d7fd32e to ffacf69 Compare July 20, 2023 08:52

@m-schen m-schen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

functions lgtm.

Show information of all sessions on CN servers. For sys tenant,
show all sessions; for common tenant, show the sessoins that are
started by the tenant.

There three ways to show processlist:

1. SHOW PROCESSLIST;
2. SELECT * FROM processlist() a;
3. SELECT * FROM information_schema.processlist;

The result is as belows:

```
        node_id: dd1dccb4-4d3c-41f8-b482-5251dc7a41bf
        conn_id: 1201
     session_id: d5e31e62-26b4-11ee-9cf1-f644820d18b1
        account: sys
           user: dump
           host: 127.0.0.1:16001
             db: test
  session_start: 2023-07-20 04:21:01.946414
        command: COM_QUERY
           info: select * from information_schema.processlist
         txn_id: 87e2a8b7470d4077b6e50748d99b2a73
   statement_id: fec3c71e-26b4-11ee-9cf2-f644820d18b1
 statement_type: Select
     query_type: DQL
sql_source_type: external_sql
    query_start: 2023-07-20 04:22:10.527457
```
@mergify
mergify Bot merged commit 61f8769 into matrixorigin:main Jul 21, 2023
@volgariver6 volgariver6 mentioned this pull request Jul 21, 2023
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature size/L Denotes a PR that changes [500,999] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.