Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] forcemerge Request Fails After 5 Minutes Despite Custom requestTimeout Configuration #939

Open
eacet opened this issue Dec 13, 2024 · 3 comments

Comments

@eacet
Copy link

eacet commented Dec 13, 2024

What is the bug?

When calling the forcemerge function with the requestTimeout parameter set to 1800000 (30 minutes), the request consistently fails after 5 minutes, despite the timeout being explicitly configured for a longer duration.

How can one reproduce the bug?

  1. Use the library to call the forcemerge function.
  2. Set the requestTimeout parameter to 1800000 (30 minutes).
  3. Observe that the request times out after 5 minutes instead of the configured 30 minutes.

What is the expected behavior?

The request should respect the requestTimeout configuration and allow the operation to continue for up to 30 minutes before timing out.

What is your host/environment?

Operating System: macOS Sequoia 15 & Amazon Linux 2 (Amazon Linux 2023), used in AWS CodeBuild environment
Library Version: 2.13.0
Node.js Version: 22

@dblock
Copy link
Member

dblock commented Dec 13, 2024

Does the same request wait with curl? Just trying to isolate where the timeout happens.

@eacet
Copy link
Author

eacet commented Dec 17, 2024

Does the same request wait with curl? Just trying to isolate where the timeout happens.

curl request doesn't throw timeout error but it just returns below response immediately.

{"_shards":{"total":10,"successful":5,"failed":0}}

@dblock
Copy link
Member

dblock commented Dec 17, 2024

@eacet That seems odd, can you put up a simple repro for this along with the curl command you're using? Something working like a sample in https://github.com/opensearch-project/opensearch-js/tree/main/samples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants