Skip to content

InstantRetry should be skipped if a transaction is already started by an asynchronous endpoint #525

@lifinsky

Description

@lifinsky

Ecotone version(s) affected: latest

Description
Currently, if an asynchronous endpoint in Ecotone starts a transaction before the InstantRetryInterceptor, the retry logic executes inside an already active transaction.
This leads to incorrect behavior: retries happen mid-transaction, which can cause inconsistent state or partially committed changes.

Expected behavior:
If a transaction has already been started by the asynchronous endpoint, Ecotone should not execute Instant Retry. Instead, the message should simply fail, get redelivered using delayed retry.

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