Skip to content

Fix: Channel failure on shm resize due to CacheMiss#254

Open
griffinmilsap wants to merge 4 commits into
devfrom
fix/channel-failure-on-shm-resize
Open

Fix: Channel failure on shm resize due to CacheMiss#254
griffinmilsap wants to merge 4 commits into
devfrom
fix/channel-failure-on-shm-resize

Conversation

@griffinmilsap

Copy link
Copy Markdown
Collaborator

If a Publisher resizes SHM repeatedly, it can happen that the receiving MessageChannel either fails to lease the block before it becomes deallocated, or that the associated block is no-longer leased and is deallocated when backpressure is cleared, resulting in an uncaught CacheMiss exception which kills the Task servicing the connection silently.

The test case and hardening of message servicing in MessageChannel in this PR likely closes #253.

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.

Cross-process SHM grow (buf_size exceeded) can silently and permanently kill a subscriber channel via uncaught assert in MessageChannel.monitor

1 participant