Skip to content

fix: synchronize memory engine initialization - #97

Merged
trakhimenok merged 2 commits into
mainfrom
fix/memory-engine-init-race
Jul 19, 2026
Merged

fix: synchronize memory engine initialization#97
trakhimenok merged 2 commits into
mainfrom
fix/memory-engine-init-race

Conversation

@trakhimenok

Copy link
Copy Markdown
Contributor

Fixes #96.

Lazy in-memory storage engine initialization now uses a dedicated mutex, so concurrent readonly transactions cannot write the collections map concurrently.

Adds a barrier-based regression test and runs go test -race ./... in CI.

Validated with go test ./... and go test -race ./....

@trakhimenok
trakhimenok merged commit 6c386f3 into main Jul 19, 2026
7 checks passed
@trakhimenok
trakhimenok deleted the fix/memory-engine-init-race branch July 19, 2026 16:45
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.

race: lazy engine initialization writes collections map during concurrent readonly transactions

1 participant