Details
Details
Assignee
Unassigned
UnassignedReporter
Former user
Former user(Deactivated)Priority
Components
Needs QA
No
Needs Doc
Yes
Story Points
0
Sprint
None
Affects versions
Environment
perconalab/pmm-server:dev-latest
CLIENT_VERSION: dev-latest
CLIENTS: --addclient=ps,1
http://18.219.191.193/graph/d/pmm-qan/pmm-query-analytics?orgId=1&from=now-12h&to=now&var-interval=$__auto_interval_interval&var-environment=All&var-node_name=All&var-service_name=All&var-cluster=All&var-replication_set=All&var-database=All&var-node_type=All&var-service_type=All&var-schema=All&tz=browser&theme=dark×tamp=1589816937578&filter_by=a4e608692ba2721250c223e88b0110cf&active_details_tab=examples
Created May 19, 2020 at 7:32 AM
Updated March 19, 2025 at 12:07 PM
Impact on the user:
User getting 2 different presentation about the query. this makes vey big confusion and brakes the trust to the tool because "it's obwious bug, so we don't know what query presentation to trust"
STR:
Open QAN
Select the first query:
SELECT `performance_schema` . `events_waits_summary_global_by_event_name` . `EVENT_NAME` AS `events` , `performance_schema` . `events_waits_summary_global_by_event_name` . `COUNT_STAR` AS `total` , `performance_schema` . `events_waits_summary_global_by_event_name` . `SUM_TIMER_WAIT` AS `total_latency` , `performance_schema` . `events_waits_summary_global_by_event_name` . `AVG_TIMER_WAIT` AS `avg_latency` , `performance_schema` . `events_waits_summary_global_by_event_name` . `MAX_TIMER_WAIT` AS `max_latency` FROM `performance_schema` . `events_waits_summary_global_by_event_name` WHERE ( ( `performance_schema` . `events_waits_summary_global_by_event_name` . `EVENT_NAME` != ? ) AND ( `performance_schema` . `events_waits_summary_global_by_event_name` . `SUM_TIMER_WAIT` > ? ) ) ORDER BY `performance_schema` . `events_waits_summary_global_by_event_name` . `SUM_TIMER_WAIT` DESC
Open Examples tab
Actual result:
select
table_schema,
table_name,
table_type,
ifnull(engine, 'none') as engine,
ifnull(version, '0') as version,
ifnull(row_format, 'none') as row_format,
ifnull(table_rows, '0') as table_rows,
ifnull(data_length, '0') as data_length,
ifnull(index_length, '0') as index_length,
ifnull(data_free, '0') as data_free,
ifnull(create_options, 'none') as create_options
from
information_schema.tables
where
table_schema = 'sys'
Expected result:
Example and fingerprint should not be different
***
Observed only with perfshema
Seems to be affecting only 3 MySQL specific queries:
Found the same issue also in PMM1. Same query with perfschema and slowlog - see attachments.
DOD:
- all queries much theirs fingerprints.
Suggested fix:
Use method to create fingerprint (same as for slowlog) if query example does not much query fingerprint in performance schema
The "fix" will slow down our agent
There is no trusted bug fix!
Problem is on MySQL side
Problem exists with some system queries