TIDB_TRX can not parse CURRENT_SQL_DIGEST_TEXT where use two tidb #27058
Labels
sig/transaction
SIG:Transaction
type/question
The issue belongs to a question.
type/stale
This issue has not been updated for a long time.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
drop table if exists t;
create table t (a int primary key, b int);
insert into t values (1, 10), (2, 20), (3, 30);
/* tidb0 / begin;
/ tidb0 / update t set b=11 where a =1;
/ tidb1 session1*/ update t set b=12 where a =1; ---block
/* tidb1 session2*/ select * from TIDB_TRX\G ---check result
2. What did you expect to see? (Required)
parse CURRENT_SQL_DIGEST and CURRENT_SQL_DIGEST_TEXT correctly;
3. What did you see instead (Required)
parse CURRENT_SQL_DIGEST correctly, but CURRENT_SQL_DIGEST_TEXT is null,as follow:
mysql> select * from TIDB_TRX\G
*************************** 1. row ***************************
ID: 426921474408841217
START_TIME: 2021-08-10 06:16:21.064000
CURRENT_SQL_DIGEST: 3b491f15bc52ff182a37547ba0ccb3103f658e6d7935303836017fbf5cc0c75c
CURRENT_SQL_DIGEST_TEXT: NULL
STATE: Committing
WAITING_START_TIME: NULL
MEM_BUFFER_KEYS: 1
MEM_BUFFER_BYTES: 29
SESSION_ID: 7
USER: root
DB: test
ALL_SQL_DIGESTS: ["3b491f15bc52ff182a37547ba0ccb3103f658e6d7935303836017fbf5cc0c75c"]
1 row in set (0.00 sec)
4. What is your TiDB version? (Required)
Release Version: v5.2.0-alpha-562-ge539f9d62
Edition: Community
Git Commit Hash: e539f9d
Git Branch: master
UTC Build Time: 2021-08-09 11:35:07
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
The text was updated successfully, but these errors were encountered: