test: require opt-in LMDB map auto-growth #14
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/tek9!14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "db/lmdb-auto-grow-red-20260831"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
RED-first slice for #10
This PR intentionally contains the regression before production code.
The fixture opens a deliberately small LMDB environment with
:auto-grow t, writes a value larger than the initial map, requiresdb-max-sizeto increase, then closes/reopens and verifies the value remains durable.Current
masterhas no:auto-growconstructor setting, so exact-head tests are expected to fail for the missing behavior. A broken environment or unrelated failure does not count as RED.Important implementation constraint
Do not obtain GREEN by merely catching
LMDB-MAP-FULL-ERRORaround the existing transaction closure. Several current write paths resolve/capture LMDB DBI handles before enteringwith-database; closing/reopening the environment would make those captured handles stale. The eventual grow/retry boundary must reacquire DBIs before replaying the complete logical top-level write.Issue: #10
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.