You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Construct a scenario where retryable (single-statement) deadlocks occurs.
Check information_schema.deadlocks for the information of the retryable deadlock.
2. What did you expect to see? (Required)
When the config pessimistic-txn.deadlock-history-collect-retryable is not enabled, there shouldn't be information about it; otherwise, there is a deadlock information about it with retryable column be 1.
3. What did you see instead (Required)
In both case the deadlock information shows up, and retryable column is always 0.
The reason is that client-go invokes a callback from TiDB to collect the deadlocks, but it's invoked prior to the IsRetryable field being set.
4. What is your TiDB version? (Required)
master, 5.2, 5.1
The text was updated successfully, but these errors were encountered:
Please edit this comment or add a new comment to complete the following information
Bug
Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100
1. Root Cause Analysis (RCA) (optional)
TiDB uses a callback OnDeadlock for collecting deadlock information to information_schema.deadlocks, however the callback is called before checking if the deadlock is retryable and set the IsRetryable field, therefore the retryable deadlocks are all considered ad non-retryable ones.
2. Symptom (optional)
Retryable deadlocks are collected to information_schema.deadlocks as if they are non-retryable ones, with RETRYABLE column be 0.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
information_schema.deadlocks
for the information of the retryable deadlock.2. What did you expect to see? (Required)
When the config
pessimistic-txn.deadlock-history-collect-retryable
is not enabled, there shouldn't be information about it; otherwise, there is a deadlock information about it withretryable
column be1
.3. What did you see instead (Required)
In both case the deadlock information shows up, and
retryable
column is always0
.The reason is that client-go invokes a callback from TiDB to collect the deadlocks, but it's invoked prior to the
IsRetryable
field being set.4. What is your TiDB version? (Required)
master, 5.2, 5.1
The text was updated successfully, but these errors were encountered: