Skip to content

fix(agent): persist to Redis off the buffer lock and drain pending writes on stop - #22

Merged
rennf93 merged 1 commit into
masterfrom
fix/agent-persist-off-lock
Oct 15, 2026
Merged

rennf93 merged 1 commit into
masterfrom
fix/agent-persist-off-lock

Conversation

@rennf93

@rennf93 rennf93 commented Oct 15, 2026

Copy link
Copy Markdown
Member

Closes #21

The Redis write no longer runs on the caller's thread or under the buffer lock: the key is minted under the lock and the write is submitted to a bounded persist pool (4 threads, queue of 1024) that stop drains for up to 10 seconds. A full or closed pool skips persistence and counts a persist failure. A record flushed or evicted before its write lands has its key deleted instead of left to TTL. The startup encryption error now reports its cause.

@rennf93
rennf93 merged commit 042c193 into master Oct 15, 2026
8 checks passed
@rennf93
rennf93 deleted the fix/agent-persist-off-lock branch October 15, 2026 04:13
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.

fix(agent): Redis persistence blocks event-emitting requests

1 participant