Skip to content

Retry logic does the wrong thing #321

@andrewvc

Description

@andrewvc

Currently our retry logic is the following:

  1. Retry [409, 429, 503] up max_attempts times per batch.
  2. Retry network errors infinitely.

As @gingerwizard pointed out this all makes no sense. We would expect 429/503 to retry infinitely. These both mean that Elasticsearch is just too busy to do anything useful.

For the 409 use case there's no reason to retry on the ES output. We should let Elasticsearch handle that with retry_on_conflict.

The great thing about this is we'll need less code in this plugin for better performance / functionality!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions