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

chore: add tx queue head debug info in AnalyzeTxQueue #4026

Merged
merged 1 commit into from
Nov 4, 2024
Merged

Conversation

kostasrim
Copy link
Contributor

Should resolve #4020

@kostasrim
Copy link
Contributor Author

@adiholden let's discuss here what else information we would like to print

@@ -174,6 +178,9 @@ class EngineShard {

// the lock fingerprint with maximum contention score.
uint64_t max_contention_lock;

// We can use a vector to hold debug info for all items in the txqueue
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My idea here we might want to analyze the whole txqueue, so maybe it would be interesting extending DEBUG TX to include N transactions

{
auto value = queue->At(cur);
Transaction* trx = std::get<Transaction*>(value);
info.head.debug_id_info = trx->DebugId();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tx_id + name of the command + shard count. Maybe we should also include per shard data, arguments etc ?

Copy link
Collaborator

@romange romange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kostasrim kostasrim changed the title [WIP] chore: add tx queue head debug info in AnalyzeTxQueue chore: add tx queue head debug info in AnalyzeTxQueue Nov 4, 2024
@kostasrim kostasrim merged commit e103254 into main Nov 4, 2024
12 checks passed
@kostasrim kostasrim deleted the kpr2 branch November 4, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend AnalyzeTxQueue
3 participants