[hibernate-issues] [JIRA] (HSEARCH-2505) Lower the default read timeout with Elasticsearch

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Thu Aug 6 08:21:05 EDT 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *updated* an issue

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiYzc3NWU2YTczNGU3NDgwMDg1OTM3ZjM5NzM5MWQ2ZjEiLCJwIjoiaiJ9 ) / Task ( https://hibernate.atlassian.net/browse/HSEARCH-2505?atlOrigin=eyJpIjoiYzc3NWU2YTczNGU3NDgwMDg1OTM3ZjM5NzM5MWQ2ZjEiLCJwIjoiaiJ9 ) HSEARCH-2505 ( https://hibernate.atlassian.net/browse/HSEARCH-2505?atlOrigin=eyJpIjoiYzc3NWU2YTczNGU3NDgwMDg1OTM3ZjM5NzM5MWQ2ZjEiLCJwIjoiaiJ9 ) Lower the default read timeout with Elasticsearch ( https://hibernate.atlassian.net/browse/HSEARCH-2505?atlOrigin=eyJpIjoiYzc3NWU2YTczNGU3NDgwMDg1OTM3ZjM5NzM5MWQ2ZjEiLCJwIjoiaiJ9 )

Change By: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b )

We currently have a very high value of 60s, due to calls to the health API where we indeed may have to wait this long.

-If per-request timeouts are added to Jest (https://github.com/searchbox-io/Jest/issues/411), we could use that instead and avoid this high default read timeout.-

-We asked for per-request timeouts to be added to the official Elasticsearch client, so let's wait for that first.-

It looks like it's not going to happen. Let's try another way: use a lower read timeout by default, but implement health checks in Hibernate Search  so that we try again on read timeout, until the health check timeout is reached. For an idea of how to do this, see how we used to trigger a refresh after a flush; the code was removed, but you will probably need to reintroduce it: https://github.com/hibernate/hibernate-search/commit/cefff76cca94f1aa941736ffae14320dadd072fb

Also, I've read somewhere that the health check after creating an index is no longer necessary in Elasticsearch 5 onwards; let's investigate that?

( https://hibernate.atlassian.net/browse/HSEARCH-2505#add-comment?atlOrigin=eyJpIjoiYzc3NWU2YTczNGU3NDgwMDg1OTM3ZjM5NzM5MWQ2ZjEiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-2505#add-comment?atlOrigin=eyJpIjoiYzc3NWU2YTczNGU3NDgwMDg1OTM3ZjM5NzM5MWQ2ZjEiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100141- sha1:76df2fe )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200806/f8779192/attachment.html 


More information about the hibernate-issues mailing list