Problem:

I was facing an issue where if elastic server connection was failing I would get an exception "No alive nodes found in your cluster" and the page would not load. So instead Im checking if cluster health is ok & returning an error if connection is down.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

saurabhpandit26 created an issue. See original summary.

saurabhpandit26’s picture

saurabhpandit26’s picture

Im adding additional conditions when cluster config is not defined. These cause site-wide failure when used with modules like facets.

Letharion’s picture

This patch saved me. I accidentally removed my cluster, and brought the whole site down as every page was just the exception.

mparker17’s picture

Status: Active » Needs review

There's a patch here, so I'm going to move this to "Needs review"

mparker17’s picture

I just released elasticsearch_connector-8.x-7.0-alpha6, which had some changes that could break older patches, so I've been proactively fixing merge conflicts, hopefully saving people time when they need to upgrade.

I created merge request !146 fromt he patch in #3, and resolved the merge conflicts. If you need an updated patch file, you can download one from the merge request.

Thank you!