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

as the concurrency number increasingly, the code is still passing successfully after requestTimeOutms #2256

Open
wang-xiaowu opened this issue May 16, 2024 · 5 comments

Comments

@wang-xiaowu
Copy link

wang-xiaowu commented May 16, 2024

🐛 Bug Report

To Reproduce

  • init es client
global.es = new Client({
  node: '',
  auth: {
    username: '',
    password: '',
  },
  compression: 'gzip', // Default: false
  requestTimeout: 50, // Default: 30000
});
  • use it in code
const now = Date.now();
// here is the initial consumption time, 1ms
logger.warn(`total time:${Date.now() - now} ms`);
await es.search(queryCondition);
// here is the consumption time after searching es, as the concurrency number increasingly, maybe can be more than 1500ms 
logger.warn(`total time:${Date.now() - now} ms`);

Expected behavior

A clear and concise description of what you expected to happen.

Your Environment

  • node version: 16.15.0
  • @elastic/elasticsearch version: 7.17.13
  • os: Linux
  • any other relevant information
@JoshMock
Copy link
Member

Sounds like same problem that was addressed in #2159. Are you able to test with the 8.13 client rather than 7.x to see if that resolves your issue? It would take some effort to backport the fix to 7.17, so I want to make sure I'm on the right track first.

@wang-xiaowu
Copy link
Author

ResponseError: {\"error\":\"Content-Type header [application/vnd.elasticsearch+json; compatible-with=8] is not supported\",\"status\":406}

is there any way to compatible with 7.x.
otherwise i need to set up a new elasticsearch server?

@JoshMock
Copy link
Member

I'll keep this ticket open and address it as time allows.

@JoshMock JoshMock self-assigned this Jun 7, 2024
@JoshMock JoshMock removed their assignment Jul 29, 2024
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove the stale label, or leave a comment, or this will be closed in 14 days.

@github-actions github-actions bot added the stale label Oct 28, 2024
@wang-xiaowu
Copy link
Author

This issue is stale because it has been open 90 days with no activity. Remove the stale label, or leave a comment, or this will be closed in 14 days.

to remove stale label

@JoshMock JoshMock removed the stale label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants