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.
| Comment | File | Size | Author |
|---|
Issue fork elasticsearch_connector-3127438
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
Comment #2
saurabhpandit26 commentedComment #3
saurabhpandit26 commentedIm adding additional conditions when cluster config is not defined. These cause site-wide failure when used with modules like facets.
Comment #4
Letharion commentedThis patch saved me. I accidentally removed my cluster, and brought the whole site down as every page was just the exception.
Comment #5
mparker17There's a patch here, so I'm going to move this to "Needs review"
Comment #7
mparker17I 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!