[hibernate-issues] [JIRA] (HSEARCH-3900) drop-and-create strategy is not working at app. startup when "hibernate.search.autoregister_listeners" is set to false. And if true, startup index creation thread are not released, sending the app in out of memory.

Ronak S (JIRA) jira at hibernate.atlassian.net
Tue Apr 28 06:28:29 EDT 2020


Ronak S ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ea56c8496bbcb0b852580f0 ) *commented* on HSEARCH-3900 ( https://hibernate.atlassian.net/browse/HSEARCH-3900?atlOrigin=eyJpIjoiMWE3NmVlM2FkYjViNDg5OTg3YmI0MDkwMzBiODFhYzEiLCJwIjoiaiJ9 )

Re: drop-and-create strategy is not working at app. startup when "hibernate.search.autoregister_listeners" is set to false. And if true, startup index creation thread are not released, sending the app in out of memory. ( https://hibernate.atlassian.net/browse/HSEARCH-3900?atlOrigin=eyJpIjoiMWE3NmVlM2FkYjViNDg5OTg3YmI0MDkwMzBiODFhYzEiLCJwIjoiaiJ9 )

Below is the property from our hibernate config.

<property name="hibernate.search.default.indexmanager">elasticsearch</property>

We have this set correctly.

> 
> 
> 
> These are the threads that perform indexing.
> 
> 

But on startup we are not indexing anything.

> 
> 
> 
> The threads will not stop as long as your application is running. That's
> on purpose.
> 
> 

Why is so?

> 
> 
> 
> The threads run intermittently when you index something. That's on
> purpose.
> 
> 

We are not indexing anything on startup. Then why are they even started. And why they keep on running, when I’m not indexing anything.

> 
> 
> 
> Was your only problem that "Hibernate Search creates threads"?
> 
> 

No, issue is these threads are throwing my application in out of memory condition. Also If I switch elastic search off in my app, then the application runs fine.

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

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#100125- sha1:29f7b81 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200428/f52d071b/attachment.html 


More information about the hibernate-issues mailing list