Skip to content

[IDEA] Non-retryable errors loop indefinitely #616

Backlog

Description

@mgaffigan

Connectors handle every failure as if retrying could succeed. A failure that can never succeed for a given message (the downstream system rejected it, or the channel will refuse it on every attempt) is retried indefinitely or redelivered. Each retry repeats the full cost, and on the destination side it can deliver the same message again.

Proposal

A single, general convention for "retrying this will never help", not specific to any one failure:

  1. A donkey marker, for example a NonRetriable interface any exception can implement, and one helper that checks a throwable's cause chain for it.
  2. Sources treat a non-retriable rejection as handled with an error: log it, raise an event, and acknowledge or move the item, instead of leaving it to be retried.
  3. Dispatchers return ERROR instead of QUEUED for a non-retriable failure.
  4. Mark the permanent failures that exist today: however message too large falls, attachment handler failures, and possibly HTTP 4xx responses (likely behind a setting, since some 4xx responses such as 408 and 429 are transient).

Activity

  1. added
    enhancement
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions