On bootstrap failure the SessionFactory is closed without propagating the root cause

Description

In case of misconfiguration it is possible that HibernateSearchSessionFactoryObserver triggers the close() operation of the SessionFactory it is attempting to integrate with, without propagating the root cause.

We should never swallow such exceptions, as e.g. WildFly doesn't realize the deployment failed.

Environment

None

Assignee

Yoann Rodière

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Affects versions

Priority

Major
Configure