entity.search_api_index.canonical route will produce fatal error when backend is down

Created on 1 September 2024, 5 months ago
Updated 20 September 2024, 4 months ago

Problem/Motivation

Similar to #3187670: entity.search_api_index.canonical route will produce fatal error when backend is down โ†’ . Vising entity.search_api_index.canonical route when backend is down, will provide a fatal error

OpenSearch\Common\Exceptions\NoNodesAvailableException: No alive nodes found in your cluster in OpenSearch\ConnectionPool\StaticNoPingConnectionPool->nextConnection() (line 68 of /var/www/html/vendor/opensearch-project/opensearch-php/src/OpenSearch/ConnectionPool/StaticNoPingConnectionPool.php).

Steps to reproduce

1. Create server and index.
2. Shut down search backend, e.g. sudo service opensearch stop or change the connector url port to some non-existing eg: $config['search_api.server.opensearch']['backend_config']['connector_config']['url'] = "http://localhost:9999"
3. Go to /admin/config/search/search-api/index/{index_name}

Proposed resolution

Use try/catch method when connecting the backend.

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

๐Ÿ‡ซ๐Ÿ‡ฎFinland sokru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024