- Issue created by @oikeuttaelaimille
Hello,
I was testing elasticsearch_connector update to v8.0.0-alpha2
, and our DTT tests completely unrelated to search are failing after the update. I was debugging the issue, and the failure is caused by search_api_entity_delete
hook, which is triggered by deleting a node. This eventually triggers NoNodeAvailableException
, since we are not running elasticsearch on our CI.
I would argue that exception handlers like this could also catch Elastic\Transport\Exception\TransportException
as well, so if the elasticsearch is not available, the exception would be handled withing search_api
or elasticsearch_connector
.
In my case, the NoNodeAvailableException
is finally caught in SqlContentEntity::delete
and transformed into a EntityStorageException
.
Make sure elasticsearch is not available. Delete an entity that tracked by search_api.
Handle Elastic\Transport\Exception\TransportException
exceptions in BackendClient
.
Active
8.0
Code