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

feat(mdbx): record backtrace of read transactions and log on timeout #13707

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

Conversation

shekhirin
Copy link
Collaborator

@shekhirin shekhirin commented Jan 7, 2025

Records the backtrace of each read transaction when read-tx-timeouts feature (enabled by default in reth binary) and the debug assertions are enabled.

Helps to debug such errors

Long-lived read transaction has been timed out open_duration=300.000098232s

The backtrace is stored as an Arc because Backtrace doesn't implement Clone.

@shekhirin shekhirin added C-enhancement New feature or request A-db Related to the database A-observability Related to tracing, metrics, logs and other observability tools labels Jan 7, 2025
@shekhirin shekhirin marked this pull request as ready for review January 7, 2025 13:55
@shekhirin shekhirin requested a review from rakita as a code owner January 7, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-db Related to the database A-observability Related to tracing, metrics, logs and other observability tools C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants