Skip to content

flushJournalBatch in EventSourced should never submit a WriteMessages call if journalBatch is empty #21116

@abesanderson

Description

@abesanderson

It seems like the persistence layer should never be submitting WriteMessages to the journal when there is no batch for it to submit. Most of the cases are already checking for non empty batch, but in the case of restart of the actor, it will submit an empty batch. This can cause failures later on when the Vector is referenced, which can potentially trigger the circuit breaker to trip incorrectly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIssues that the core team will likely not have time to work ont:persistence

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions