Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]show queries only displays queries for the current node #2102

Open
Benxiaohai001 opened this issue Apr 26, 2024 · 0 comments
Open

[BUG]show queries only displays queries for the current node #2102

Benxiaohai001 opened this issue Apr 26, 2024 · 0 comments
Labels
type/bug Something isn't working
Milestone

Comments

@Benxiaohai001
Copy link
Member

Describe the bug

show queries only displays queries for the current node
version: cnosdb 2.3.5, revision 2c416ee

To Reproduce

public ❯ zsh: killed     cnosdb-cli -P 9912
ubuntu20# cnosdb-cli -P 9902
CnosDB CLI v2.3.5
Input arguments: CliArgs { subcommand: None, host: "localhost", port: 9902, user: "root", password: false, private_key_path: None, database: "public", tenant: "cnosdb", precision: None, target_partitions: None, stream_trigger_interval: None, data_path: None, receive_data_encoding: None, send_data_encoding: None, file: [], rc: None, format: Table, quiet: false, write_line_protocol: None, use_ssl: false, use_unsafe_ssl: false, cacert: [], chunked: false, error_stop: false, process_cli_command: false }
public ❯ show queries;
+----------------------+------+---------------+------------+----------+
| query_id             | user | query         | state      | duration |
+----------------------+------+---------------+------------+----------+
| 18170119777746962735 | root | show queries; | SCHEDULING | 0        |
+----------------------+------+---------------+------------+----------+
Query took 0.003 seconds.
public ❯ \q
ubuntu20# cnosdb-cli -P 9912
CnosDB CLI v2.3.5
Input arguments: CliArgs { subcommand: None, host: "localhost", port: 9912, user: "root", password: false, private_key_path: None, database: "public", tenant: "cnosdb", precision: None, target_partitions: None, stream_trigger_interval: None, data_path: None, receive_data_encoding: None, send_data_encoding: None, file: [], rc: None, format: Table, quiet: false, write_line_protocol: None, use_ssl: false, use_unsafe_ssl: false, cacert: [], chunked: false, error_stop: false, process_cli_command: false }
public ❯ show queries;
+----------------------+------+--------------------+------------+----------+
| query_id             | user | query              | state      | duration |
+----------------------+------+--------------------+------------+----------+
| 17475310004744111075 | root | show queries;      | SCHEDULING | 0        |
| 14824149020694563207 | root | select * from air; | SCHEDULING | 358633   |
+----------------------+------+--------------------+------------+----------+
Query took 0.002 seconds.

Expected behavior

No response

Additional context

No response

@Benxiaohai001 Benxiaohai001 added the type/bug Something isn't working label Apr 26, 2024
@roseboy-liu roseboy-liu added this to the Long Term milestone Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants