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 ] #1204

Closed
jimsoft1000 opened this issue Oct 25, 2021 · 1 comment
Closed

会话管理--事务管理[ bug ] #1204

jimsoft1000 opened this issue Oct 25, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@jimsoft1000
Copy link

在提交 issue 前,请查阅以下资源,请先进行搜索来保证没有类似的 issue。
文档 | FAQ

重现步骤

如果监控的MySQL数据库实例参数lower_case_table_names=0
调用会话管理--事务管理功能时,会报错,原因是执行下面的SQL,p.time中的p是大写
select trx.trx_started,
trx.trx_state,
trx.trx_operation_state,
trx.trx_mysql_thread_id,
trx.trx_tables_locked,
trx.trx_rows_locked,
trx.trx_rows_modified,
trx.trx_is_read_only,
trx.trx_isolation_level,
p.user,
p.host,
p.db,
TO_SECONDS(NOW()) - TO_SECONDS(trx.trx_started) trx_idle_time,
p.time thread_time,
IFNULL((SELECT
GROUP_CONCAT(t1.sql_text SEPARATOR ';
')
FROM performance_schema.events_statements_history t1
INNER JOIN performance_schema.threads t2
ON t1.thread_id = t2.thread_id
WHERE t2.PROCESSLIST_ID = p.id), '') info
FROM information_schema.INNODB_TRX trx
INNER JOIN information_schema.PROCESSLIST p
ON trx.trx_mysql_thread_id = p.id
WHERE trx.trx_state = 'RUNNING'
AND p.COMMAND = 'Sleep'
AND P.time > 3
ORDER BY trx.trx_started ASC;

期待结果和实际结果

期待结果:

实际结果:

截图

错误日志

版本信息

应用版本/分支:

部署方式:Docker、手工部署

@hhyo
Copy link
Owner

hhyo commented Oct 26, 2021

#1175

@hhyo hhyo closed this as completed Oct 26, 2021
@hhyo hhyo added the duplicate This issue or pull request already exists label Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants