Skip to content

fix/check for stream existence before trimming #25

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

Closed

Conversation

stanley2058
Copy link
Collaborator

In a distributive architecture, the stream could be deleted from another instance without the current running instance noticing. It's not a problem since data would not be lost (the stream is only deleted after data persistence), but we should still try to handle this error case.

In this PR, we check if the stream exists before trying to do any operation on it to avoid this race condition from happening.

@stanley2058
Copy link
Collaborator Author

Streams should always exist when trimming after #26

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.

2 participants