spring-projects / spring-data-elasticsearch

Provide support to increase developer productivity in Java when using Elasticsearch. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
https://spring.io/projects/spring-data-elasticsearch/
Apache License 2.0
2.91k stars 1.33k forks source link

Getting Undebuggable Socket Exception #2775

Closed abhinav-08 closed 11 months ago

abhinav-08 commented 11 months ago

We are currently using ES8.9 and we are getting too many SocketException when searching takes place after a break like in the mornings. What have we tried so far:

  1. We tried making changes in settings as well like changing default refresh_intervals to 2s. As ES8.9 has a strategy of not making refreshes if search request is not coming to it for 30seconds. (https://www.elastic.co/guide/en/elasticsearch/reference/current/tune-for-indexing-speed.html).

  2. we also made changes to retry strategies to avoid this socketException but that seems to be not helping much.

Surely there is something that I feel we are missing, I would really appreciate if anyone can guide us what else we can try.

sothawo commented 11 months ago

This does not seem to be related to indexing speed. From the description it rather sounds like a problem between the Elasticsearch client and the server . But without knowing how your client is set up and seeing the exact errors, it impossible to tell more.

spring-projects-issues commented 11 months ago

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

spring-projects-issues commented 11 months ago

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.