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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kostasrim
Copy link
Contributor

Should resolve #4020

Signed-off-by: kostas <kostas@dragonflydb.io>
@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

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
2 participants