revert: unsafe #382 connection lifecycle change#477
Conversation
mnemosyne-oss#382)" This reverts commit c527c40.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughThe pull request removes thread-local SQLite cleanup, WAL checkpointing, BEAM connection cleanup, and the corresponding ChangesConnection cleanup removal
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Verification note: this revert removes the |
|
@AxDSan
The intent is to stabilize — Here is the request for the following procedure:
|
Summary
Reverts
c527c40(#382). The change accidentally moved Mnemosyne constructor initialization under__del__, breaking every normal instance with a missingbeamattribute. Follow-up attempts exposed that safe multi-DB lifecycle support needs a defined lease contract, not incremental patching.This restores the previously stable connection behavior. The WAL cleanup design will be revisited separately with an explicit lifecycle contract and test matrix.
Verification
43 passed.py_compileandgit diff --checkpass.Supersedes #470 and #472.
Summary
Reverts the lifecycle changes that caused normal
Mnemosyneinstances to lose theirbeamattribute, restoring stable core initialization and connection behavior.Architectural impact
Mnemosyne.Validation
py_compilesucceeds.git diff --checksucceeds.