Skip to content

Projection fault behavior changes after projection is reset #5005

Open
@antonmos

Description

@antonmos

Describe the bug

  1. publish an event of type `test' to any stream
  2. publish an event to a stream $et-test managed by the $by_event_type projection2.
    • I am aware that we SHOULD NOT write events to streams managed by projections.
  3. publish another event of type test to any stream
  4. Observe that this causes the $by_event_type projection to fault
  5. Invoke reset command on $by_event_type projection
  6. This rebuilds all of the $et-* streams.
  7. repeate step 1. The event correctly appears in the $et-test
  8. repeat step 2
  9. observe that the projection does not fault
  10. observe that event from step 7 disapeared from $et-test

See gist for code that demonstrates this

Expected behavior
The behavior before and after the reset should be the same.
That said, the behavior after the reset actually seems beneficial - i.e. events erroneously written to projection-managed streams are discarded and projections does not fault.

Actual behavior
The behavior changed after the reset

Config/Logs/Screenshots
If applicable, please attach your node configuration, logs or any screenshots.

EventStore details

  • EventStore server version: 26.10.0

  • Operating system: Linux

  • EventStore client library and version (if applicable):

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues which are a software defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions