Skip to content

[BUG] client.search does not respect timeout argument on 3.0.0 #931

@aaronkavlie-wf

Description

@aaronkavlie-wf

What is the bug?

I have recently been testing the timeout argument to the client.search method, concurrent with an upgrade to opensearch-py 3.0.0. The argument is not respected, and I get response times that align with the default 10-second timeout.

On version 2.8.0, setting the timeout argument affects slow query response times as expected.

How can one reproduce the bug?

  1. Formulate a query that causes a slow Opensearch response
  2. Set the timeout argument on client.search on versions 2.8.0 and 3.0.0. Observe differences in response times.

What is the expected behavior?

The timeout argument is respected

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