Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pubsub has potentially dangerous issues when messages have to be dropped #9

Open
jschall opened this issue Jan 19, 2019 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jschall
Copy link
Contributor

jschall commented Jan 19, 2019

Failure scenarios I can think of:

  • Messages aren't protected during write. If a low-priority publisher is writing to the oldest message in the topic group, and a high-priority publisher needs to drop that message in order to publish, the topic group memory could become corrupted.
  • A low-priority listener is publishing something on its own topic group, and the topic group is full. In this case, the low-priority listener might try to take its own mutex.

These sorts of issues can be prevented by ensuring that topics never run out of memory. See also #5

@jschall jschall added the bug Something isn't working label Jan 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant