Skip to content

[BUG] Transform _search API calls don't have timeout parameter #538

@petardz

Description

@petardz

What is the bug?
Transform _search API calls don't have timeout parameter (default value is NO_TIMEOUT). This can result in JobScheduler's lock to expire(30mins is expiry).

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Setup Transform job on heavy index where _search API call would last more then 30mins, for example 45mins
  2. Set Schedule to something small, for example 5mins
  3. Observe lock being released and another transform job acquiring it, before current job finished

What is the expected behavior?
We should keep track of time under lock and renew it when needed. All _search API calls should have appropriate timeout parameter which will give us a chance to renew lock before expiring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions