Skip to content

Subscription channel can run out of capacity and drop events #183

@pborzenkov

Description

@pborzenkov

The broadcast channel used by subscriptions (

let (sub_tx, sub_rx) = broadcast::channel(10240);
) can run out of capacity and skip the events in case the data is read really fast from the disk.

Somehow, in this case, forward_sub_to_sender simply stops forwarding any event -

Ok((event_buf, meta)) = sub_rx.recv() => {

It looks like the select! never matches RecvError::Lagged for some reasons.

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