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

Projections get stuck in a restart loop if an event is written to the checkpoint stream #2187

Closed
hayley-jean opened this issue Dec 31, 2019 · 0 comments · Fixed by #3816
Closed
Assignees
Labels
kind/bug Issues which are a software defect quality of life Issues that are fairly minor, but which improve the usage of EventStoreDB subsystem/projections Issues relating to the projections framework

Comments

@hayley-jean
Copy link
Member

If an event is written to the projections checkpoint stream that does not have the $ProjectionCheckpoint type, the projection will get caught in a restart loop.

It does not error, and the UI makes it look like it's running successfully.
The projection can be stopped through the UI, but will get into the same restart loop if started again.

The projection should instead fault if the last event in the checkpoint stream is not a checkpoint event.

Reproduction steps:

  1. Create a projection that has a low checkpoint count.
  2. Write events so that the projection checkpoints.
  3. Write an event to the projection checkpoint stream ($projections-{projection_name}-checkpoint) that is not a $ProjectionCheckpoint event.
  4. Write more events so that the projection checkpoints again.
  5. The projection will get into a restart loop.
@hayley-jean hayley-jean added kind/bug Issues which are a software defect subsystem/projections Issues relating to the projections framework labels Dec 31, 2019
@ylorph ylorph added the quality of life Issues that are fairly minor, but which improve the usage of EventStoreDB label Oct 26, 2022
@dhingrak dhingrak self-assigned this Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues which are a software defect quality of life Issues that are fairly minor, but which improve the usage of EventStoreDB subsystem/projections Issues relating to the projections framework
Projects
None yet
3 participants