Skip to content

Stream prefixes are not respected #220

@aVikingTrex

Description

@aVikingTrex

eventstore version: 4.0.0
rustc version: 1.91.0
kurrentdb version: 24.10.4-bookworm-slim (container)

If I set up a client with a subscription against the all stream like so, I am getting events from non-product streams (eg "person-xyz"). Are subscription filters meant to work with regular subscriptions or only persistent ones?

let filter = SubscriptionFilter::on_stream_name().add_prefix("product-").exclude_system_events();

let opts = SubscribeToAllOptions::default()
     .retry_options(retry_opts)
     .position(position)
     .filter(filter);

self.event_store
                    .subscribe_to_all(&opts)
                    .in_current_span()
                    .await

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions