Skip to content

[Bug]: SHOW PROCESSLIST does not list all process #12829

Closed

Description

@aylei

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93): 1.0-dev, 90dac68d
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

processlist() does not return sessions in certain node that crashed recently:

> select node_id, db, account, command from processlist() as a where node_id="30336330-3532-6132-3361-376262643936";
Empty set (0.02 sec)

# find the node in backend servers:
> show backend servers;
| 30336330-3532-6132-3361-376262643936 | 172.20.174.176:6001 | Working    |   

# get pod
kg po -n freetier-01 -owide
NAME                             READY   STATUS    RESTARTS          AGE     IP               NODE                       NOMINATED NODE   READINESS GATES
default-cn-k4tx7                 1/1     Running   366 (4m17s ago)   6d17h   172.20.174.176   cn-hangzhou.10.3.137.105   <none> 

# port-forward to the pod and execute query again, there must be at least one session (the current one), but get empty set
> select node_id, db, account, command from processlist() as a where node_id="30336330-3532-6132-3361-376262643936";
Empty set (0.02 sec)

Expected Behavior

processlist() should return all active sessions

Steps to Reproduce

No response

Additional information

No response

Activity

  1. added
    kind/bug
    on Nov 20, 2023
  2. added
    severity/s0
    on Nov 20, 2023
  3. added this to the 1.1.0 milestone on Nov 20, 2023
  4. aylei commented on Nov 20, 2023

    @aylei
    ContributorAuthor
  5. volgariver6 commented on Nov 22, 2023

    @volgariver6
    Contributor

    fixed

  6. modified the milestones: 1.1.0, 1.0.0 on Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions