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

MicroProfileHealthDiagnosticsParticipant incompatible with MicroProfile Health 3.0 and later #314

Closed
jeffmaury opened this issue Nov 15, 2022 · 4 comments · Fixed by #316
Labels
bug Something isn't working
Milestone

Comments

@jeffmaury
Copy link
Contributor

@rgrunber rgrunber added the bug Something isn't working label Nov 15, 2022
@rgrunber
Copy link
Contributor

Yup, https://download.eclipse.org/microprofile/microprofile-health-3.0/microprofile-health-spec-3.0.html#_different_kinds_of_health_checks , should be easy to either check any of the 3 (Health, Readiness, Liveness), or the HealthCheck type.

@jeffmaury
Copy link
Contributor Author

Health should not be used because it has been removed, that's the point

@rgrunber
Copy link
Contributor

If we don't need to maintain any compatibility for 2.0, then yes, we can just remove that.

@jeffmaury
Copy link
Contributor Author

jeffmaury commented Nov 15, 2022

We need to support 2.0 as well as 3.0 but this can be achieved by using Liveness, Readiness or HealthCheck rather than a deprecated annotation type to detect MicroProfile Health for the project.

datho7561 added a commit to datho7561/lsp4mp that referenced this issue Nov 15, 2022
Check to make sure that `HealthCheck` is on the classpath
before before performing the microprofile-health specific validations.
Health was removed in microprofile-health 3.0.

Fixes eclipse#314

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/lsp4mp that referenced this issue Nov 16, 2022
- Check to make sure that `HealthCheck` is on the classpath
  before before performing the microprofile-health specific validations.
  Health was removed in microprofile-health 3.0.
- Modify the diagnostic messages and code lens to account for the fact
  that @health might not be present

Fixes eclipse#314

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/lsp4mp that referenced this issue Nov 16, 2022
- Check to make sure that `HealthCheck` is on the classpath
  before before performing the microprofile-health specific validations.
  Health was removed in microprofile-health 3.0.
- Modify the diagnostic messages and code lens to account for the fact
  that @health might not be present

Fixes eclipse#314

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/lsp4mp that referenced this issue Nov 16, 2022
- Check to make sure that `HealthCheck` is on the classpath
  before before performing the microprofile-health specific validations.
  Health was removed in microprofile-health 3.0.
- Modify the diagnostic messages and code lens to account for the fact
  that @health might not be present

Fixes eclipse#314

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/lsp4mp that referenced this issue Nov 16, 2022
- Check to make sure that `HealthCheck` is on the classpath
  before before performing the microprofile-health specific validations.
  Health was removed in microprofile-health 3.0.
- Modify the diagnostic messages and code lens to account for the fact
  that @health might not be present

Fixes eclipse#314

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561 datho7561 added this to the 0.6.0 milestone Nov 16, 2022
datho7561 added a commit that referenced this issue Nov 16, 2022
- Check to make sure that `HealthCheck` is on the classpath
  before before performing the microprofile-health specific validations.
  Health was removed in microprofile-health 3.0.
- Modify the diagnostic messages and code lens to account for the fact
  that @health might not be present

Fixes #314

Signed-off-by: David Thompson <davthomp@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants