Skip to content

OptimisticPipelineHook throws invalid ConcurrencyExceptions with IPersistStreams.Purge #332

@fschmied

Description

@fschmied

We just ran into an issue in our integration tests, where IEventStream.CommitChanges throws a ConcurrencyException although there are no concurrent modifications (and indeed no commits in the database). Debugging showed that the exceptions are thrown by OptimisticPipelineHook.PreCommit - the "heads" stored by the hook did not match what was in the database.

The reason is that our tests use IPersistStreams.Purge to clear the event store, and the OptimisticPipelineHook doesn't clear its cache when that API is called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions