Skip to content

Retry transient SQLite I/O failures during connection startup - #229

Merged
PrzemyslawKlys merged 1 commit into
masterfrom
fix/sqlite-io-retry
Aug 16, 2026
Merged

Retry transient SQLite I/O failures during connection startup#229
PrzemyslawKlys merged 1 commit into
masterfrom
fix/sqlite-io-retry

Conversation

@PrzemyslawKlys

Copy link
Copy Markdown
Member

Summary

  • recognize SQLite busy, locked, and transient disk I/O failures through wrapped exception chains
  • apply bounded retry while opening connections, setting busy timeout, and starting transactions
  • include SQLite error details in retry telemetry

Validation

  • the complete .NET 10 test suite passes: 1,227 tests
  • synchronous and asynchronous retry classification and provider paths are covered

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.53846% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.34%. Comparing base (c218bfe) to head (e29a70b).

Files with missing lines Patch % Lines
DbaClientX.SQLite/SQLite.Transactions.cs 89.65% 6 Missing ⚠️
DbaClientX.SQLite/SqliteTransientRetry.cs 61.53% 3 Missing and 2 partials ⚠️
DbaClientX.SQLite/SQLite.AsyncCommandExecution.cs 84.21% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #229      +/-   ##
==========================================
+ Coverage   53.27%   53.34%   +0.06%     
==========================================
  Files         261      261              
  Lines       19740    19800      +60     
  Branches     3415     3418       +3     
==========================================
+ Hits        10517    10562      +45     
- Misses       8209     8222      +13     
- Partials     1014     1016       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@PrzemyslawKlys
PrzemyslawKlys merged commit 9139356 into master Aug 16, 2026
17 checks passed
@PrzemyslawKlys
PrzemyslawKlys deleted the fix/sqlite-io-retry branch August 16, 2026 09:29
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.

1 participant