-
Notifications
You must be signed in to change notification settings - Fork 188
Conversation
Codecov Report
@@ Coverage Diff @@
## master #256 +/- ##
================================================
- Coverage 59.9383% 59.9246% -0.0138%
================================================
Files 130 130
Lines 14595 14595
================================================
- Hits 8748 8746 -2
- Misses 5012 5013 +1
- Partials 835 836 +1 |
@WangXiangUSTC Add any description about these newly added error codes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ErrQueryInterrupted
curious about this error. When this error happens, does it mean no data wrote in each version of TiDB
@csuzhangxc description added |
@amyangfei this error occurred when some one kill the query |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
maybe a query/execute longer than timeout will cause this error in our use scenario, otherwise our db op may not cancel a query (except for context canceled, then retry is not needed yet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
some tidb error can be resolved by retry, add some retryable error type
What is changed and how it works?
add some error
ErrQueryInterrupted: query execution was interrupted by user
ErrWriteConflictInTiDB: commit meets an write conflict error
ErrWriteConflict: similar with ErrWriteConflictInTiDB
ErrTableLocked: the table was locked by other session, can retry success when other session release the lock.