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

Timeout sqlite operations #286

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Timeout sqlite operations #286

wants to merge 4 commits into from

Conversation

somtochiama
Copy link
Contributor

@somtochiama somtochiama commented Feb 5, 2025

No description provided.

@somtochiama somtochiama marked this pull request as draft February 5, 2025 13:13
@somtochiama somtochiama requested a review from jeromegn February 5, 2025 14:48
@somtochiama somtochiama marked this pull request as ready for review February 5, 2025 15:59
Copy link
Member

@jeromegn jeromegn left a comment

Choose a reason for hiding this comment

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

looks pretty good! I think the default timeout is too long, but we can adjust.

@@ -41,6 +41,10 @@ const fn default_apply_timeout() -> usize {
10
}

fn default_sql_tx_timeout() -> usize {
10 * 60
Copy link
Member

Choose a reason for hiding this comment

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

10 minutes sounds very long, it means possibly 10 minutes of stale data if a node gets stuck. Maybe 1 minute would be more sensible? Under normal circumstances, it should never take more than a few seconds. That is, unless the created transactions are really big.

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.

2 participants