Title: sqlite: backup() never settles when rate is 0 · Issue #64892 · nodejs/node · GitHub
Open Graph Title: sqlite: backup() never settles when rate is 0 · Issue #64892 · nodejs/node
X Title: sqlite: backup() never settles when rate is 0 · Issue #64892 · nodejs/node
Description: Version main Platform N/A Subsystem sqlite What steps will reproduce the bug? import { backup, DatabaseSync } from 'node:sqlite'; import { setTimeout } from 'node:timers/promises'; const source = new DatabaseSync(':memory:'); source.exec...
Open Graph Description: Version main Platform N/A Subsystem sqlite What steps will reproduce the bug? import { backup, DatabaseSync } from 'node:sqlite'; import { setTimeout } from 'node:timers/promises'; const source = n...
X Description: Version main Platform N/A Subsystem sqlite What steps will reproduce the bug? import { backup, DatabaseSync } from 'node:sqlite'; import { setTimeout } from 'node:timers/promises'; ...
Opengraph URL: https://github.com/nodejs/node/issues/64892
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sqlite: backup() never settles when rate is 0","articleBody":"### Version\n\nmain\n\n### Platform\n\n```text\nN/A\n```\n\n### Subsystem\n\nsqlite\n\n### What steps will reproduce the bug?\n\n```js\nimport { backup, DatabaseSync } from 'node:sqlite';\nimport { setTimeout } from 'node:timers/promises';\n\nconst source = new DatabaseSync(':memory:');\nsource.exec(`\n CREATE TABLE data (value TEXT);\n INSERT INTO data VALUES ('example');\n`);\n\nconst outcome = await Promise.race([\n backup(source, 'backup.db', { rate: 0 }),\n setTimeout(1_000, 'backup still pending after 1 second'),\n]);\n\nconsole.log(outcome);\nprocess.exit();\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nzero should be rejected as an invalid rate, or explicitly treated as a documented single-call mode.\n\n### What do you see instead?\n\n```console\nbackup still pending after 1 second\n```\n\n`backup()` accepts `rate: 0` and its promise remains pending indefinitely while zero-page jobs are repeatedly scheduled.\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/trivikr","@type":"Person","name":"trivikr"},"datePublished":"2026-08-01T03:00:31Z","url":"https://github.com/nodejs/node/issues/64892"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:793e200b-e117-bebe-3877-bd400df98466 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C662:C63F3:810A02:AB95F2:6AED27FA |
| html-safe-nonce | 5f2ebfe3ae837bab7480b5bf99f54536edb2c74b3f1654d0bff66a68381bc1fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjYyOkM2M0YzOjgxMEEwMjpBQjk1RjI6NkFFRDI3RkEiLCJ2aXNpdG9yX2lkIjoiNDE3NTYwMDM1NTUyMjcxNzY5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 26e4e413655bf1ccfb3b8e9d03c7026c1130a532b1ca8bb07781dbfea6eed919 |
| hovercard-subject-tag | issue:5034929037 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/64892/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8be63750aed69706d7588b7c7ae536346d860d4786bd536351a54c1240db94b3/nodejs/node/issues/64892 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8be63750aed69706d7588b7c7ae536346d860d4786bd536351a54c1240db94b3/nodejs/node/issues/64892 |
| og:image:alt | Version main Platform N/A Subsystem sqlite What steps will reproduce the bug? import { backup, DatabaseSync } from 'node:sqlite'; import { setTimeout } from 'node:timers/promises'; const source = n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | trivikr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 98b41fa4b5635ceb45a4c54320fced73817ff290 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width