Repository navigation
sqlite: retry busy or locked backup steps - #66769
Conversation
Signed-off-by: lazerg <lazerg2@gmail.com>
|
Review requested:
|
|
Caution AgentScan found account activity patterns that may be consistent with automation. This is a heuristic, not proof that this pull request was opened by an agent or violates policy. AI-assisted contributions are permitted, but automated tooling must not open pull requests without advance approval, and contributors must personally understand, test, verify, and take responsibility for every submitted change. See the AgentScan analysis, AI use policy, and automation policy for additional context. |
Signed-off-by: lazerg <lazerg2@gmail.com>
Codecov Reportβ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #66769 +/- ##
==========================================
- Coverage 90.49% 90.49% -0.01%
==========================================
Files 797 797
Lines 277598 277601 +3
Branches 53336 53332 -4
==========================================
Hits 251220 251220
+ Misses 16790 16789 -1
- Partials 9588 9592 +4
π New features to boost your workflow:
|
|
Landed in d630b5d |
Signed-off-by: lazerg <lazerg2@gmail.com> PR-URL: nodejs#66769 Fixes: nodejs#66760 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Fixes: #66760
When the first
sqlite3_backup_step()call returnsSQLITE_BUSYorSQLITE_LOCKED(for example because the source connection is inside a write transaction),sqlite3_backup_remaining()is still 0, so the job was not rescheduled. It then fell through to theSQLITE_DONEcheck and rejected with an error read from the destination connection: errcode 0, "not an error".Both codes are retryable per the SQLite docs, so the job now reschedules the step whenever it gets one of them, whatever the remaining page count.