[MCOL-2142] calshowprocesslist - not showing high priority with wildcard is used Created: 2019-02-06 Updated: 2023-07-02 Resolved: 2023-07-02 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | N/A |
| Affects Version/s: | None |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Major |
| Reporter: | David Hill (Inactive) | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 1 |
| Labels: | None | ||
| Epic Link: | ColumnStore Performance Improvements |
| Description |
|
reported by a customer I read through the documentation for user priority at https://mariadb.com/kb/en/library/columnstore-database-user-management/#user-priority-management .. Query stats and user priority are enabled for testing this. I am wondering if the user priority actually works with the wildcard host (%), when the users are defined using the wildcard? There are numerous users defined and with priority set, but my example is with user xxxxxxx@% defined: MariaDB [infinidb_querystats]> select user,host from mysql.user where user='xxxxxx';
--------
-------- Set user priority: MariaDB [infinidb_querystats]> call calsetuserpriority('%','xxxxxx','high'); MariaDB [infinidb_querystats]> select * from user_priority where user='xxxxxx';
-----
----- Run a query as the user xxxxxx: MariaDB [dairy]> select count
------------
------------ Check query stats table for the priority used on last query: MariaDB [infinidb_querystats]> select user,host,priority,startTime from querystats where user='xxxxx' order by startTime DESC limit 1;
--------
-------- As you can see, priority is still showing as low.. even though user_priority table shows as high. I am wondering if it is because of the host defined? Similarly.. user priority is reflected correctly when running as the root@localhost user set as 'HIGH' priority. Last Query run from root user:
-----
----- I guess I am not seeing any changes within CalShowProcessList(); UserPriority is activated, and I set a user to say 'medium' : MariaDB [infinidb_querystats]> call calsetuserpriority('%','bwitzke','medium'); Then, while running a simple query I do not see a reflection of this while in calshowprocesslist(); it works when I specify the host such as root@localhost.. root then shows as having high priority.. just not the wildcard (%) |
| Comments |
| Comment by Todd Stoffel (Inactive) [ 2023-07-02 ] |
|
The "create date" on this ticket is pre-convergence with MariaDB server. If the issue still exists in a modern version of the engine/plugin please submit a new ticket. |