Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling reintroduced for preflight connection checks #19664

Merged
merged 7 commits into from
Jun 20, 2024

Conversation

todvora
Copy link
Contributor

@todvora todvora commented Jun 18, 2024

Reintroduce error message propagation for preflight connection checks.
/nocl

Description

The connection check uses our existing, tried and trusted, VersionProbe to verify connection to a datanode opensearch. But the version probe had so far no mechanism to communicate errors, only to log them. New listener has been introduced. Default implementation logs errors, preflight implementation collects them and provides them as an error string, which is displayed in the frontend.

How Has This Been Tested?

Manually

Screenshots (if appropriate):

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@todvora todvora requested a review from moesterheld June 18, 2024 05:25
Copy link
Contributor

@moesterheld moesterheld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@moesterheld moesterheld merged commit 4ed30f7 into master Jun 20, 2024
5 checks passed
@moesterheld moesterheld deleted the fix/error-handling-preflight-connection-check branch June 20, 2024 13:44
ousmaneo pushed a commit that referenced this pull request Jun 24, 2024
* Error handling reintroduced for preflight connection checks

* logging delegate, code cleanup, test

* fixed annotation

* code cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants