-
Notifications
You must be signed in to change notification settings - Fork 275
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
Update txn print #16894
Update txn print #16894
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
print more detailed info Approved by: @triump2020, @xzxiong, @daviszhen, @zhangxu19830126, @sukki37
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #16883
What this PR does / why we need it:
print more detailed info
PR Type
Enhancement, Bug fix
Description
NewTxnStaleNoCtx
function to accept a message string for better error context.makeCompactTxnInfo
function to format transaction info and updated related transaction ID handling.SetStaticTxnId
andGetStaticTxnId
withSetStaticTxnInfo
andGetStaticTxnInfo
in session handling.TxnInfoField
for logging transaction info.NewObjectsIter
to include detailed error message.Ranges
andMergeObjects
functions in transaction table.Changes walkthrough 📝
error_no_ctx.go
Enhance `NewTxnStaleNoCtx` with message parameter
pkg/common/moerr/error_no_ctx.go
NewTxnStaleNoCtx
function to accept a message string.mysql_cmd_executor.go
Add compact transaction info formatting
pkg/frontend/mysql_cmd_executor.go
makeCompactTxnInfo
function to format transaction info.types.go
Update session transaction info handling
pkg/frontend/types.go
SetStaticTxnId
andGetStaticTxnId
withSetStaticTxnInfo
andGetStaticTxnInfo
.util.go
Improve error logging with transaction info
pkg/frontend/util.go
ID.
fields.go
Add logging field for transaction info
pkg/logutil/fields.go
TxnInfoField
for logging transaction info.blocks_iter.go
Improve error message in `NewObjectsIter`
pkg/vm/engine/disttae/logtailreplay/blocks_iter.go
NewObjectsIter
to include detailed error message.txn_table.go
Enhance error logging in transaction table operations
pkg/vm/engine/disttae/txn_table.go
Ranges
andMergeObjects
.