feat: file-backed blob store + multi-process IPC integration test#88
Merged
Merged
Conversation
Add file_state_blob_store: a filesystem-backed content-addressed blob store using a git-style 2-char prefix directory layout. Blobs are written atomically via temp-file + rename(2) and deduplicated by SHA-256 digest. The store scans the root directory on construction to rebuild its in-memory index. Add state_multiprocess_ipc_test: three integration tests that fork() two processes and replicate state mutations over a real Unix domain socket connection. Tests cover unidirectional value replication, bidirectional replication, and metadata (comment) replication. - 13 file blob store tests (CRUD, persistence, concurrency, layout) - 3 multi-process IPC tests (POSIX-only, guarded by #ifndef _WIN32) - All 16 tests pass locally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add two new capabilities to the distributed state infrastructure:
File-backed blob store (
file_state_blob_store)<root>/ab/cdef01...)rename(2)Multi-process IPC integration test (
state_multiprocess_ipc_test)fork()two OS processes and replicate state over a real Unix domain socket connectionValueReplication: parent writes value, child receives via IPCBidirectionalReplication: both processes write, each receives the other's valueMetadataReplication: parent sets value + comment, child receives both#ifndef _WIN32)Test results