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

Creating a one time projection with "Emit enabled" but not "Checkpoint enabled" results in an inconsistent state #3641

Open
shaan1337 opened this issue Oct 28, 2022 · 1 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

Comments

@shaan1337
Copy link
Member

Describe the bug
Creating a one time projection with "Emit enabled" but not "Checkpoint enabled" results in an inconsistent state.

To Reproduce
Steps to reproduce the behavior:

  1. Create a one time projection with "Emit enabled" checked but "Checkpoint enabled" not checked.
  2. It will show the error:
Failed to create projection: Emit requires checkpoint
  1. Now check "Checkpoint enabled" and create the projection again. It says:
Failed to create new projection: Duplicate projection names: <projection name>

However, the projection list in the UI does not show the projection.

Expected behavior
Creating the projection at step 3 should have been allowed.

Actual behavior
It seems that the projection has been partially created, resulting in an inconsistent state.

EventStore details

  • EventStore server version:
    21.10.8 / 22.10.0

  • Operating system:
    Tested on Ubuntu

@shaan1337 shaan1337 added kind/bug Issues which are a software defect subsystem/projections Issues relating to the projections framework labels Oct 28, 2022
@hayley-jean hayley-jean added the quality of life Issues that are fairly minor, but which improve the usage of EventStoreDB label Oct 28, 2022
@ylorph
Copy link
Contributor

ylorph commented Jan 2, 2023

This is UI & HTTP api only,
The gRPC library does not support one time time projections

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
Development

No branches or pull requests

3 participants