Skip to content
New issue

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

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

Already on GitHub? # to your account

AOT support for Actuator #31671

Closed

Conversation

mhalbritter
Copy link
Contributor

@mhalbritter mhalbritter commented Jul 11, 2022

This branch has some rough edges and is currently missing tests and I have to squash the commits.

I've tested the actuator with the endpoints on both WebMVC and Webflux.

  • /conditions is completely empty. I think this must be because all the conditions are
    evaluated at build time. Double check!
  • Couldn't test /integrationgraph - i've added hints, which should be enough as soon as spring-integration is AOT ready
  • /heapdump and /threaddump don't work in native-image. Both don't throw exceptions, they return 503 Service Unavailable to the caller
  • JMX is not supported on native-image

@mhalbritter mhalbritter force-pushed the mh/aot-for-actuator branch 4 times, most recently from 5099a92 to 13b6ab0 Compare July 18, 2022 13:49
Mainly adds reflection hints for the actuator infrastructure.
Also adds the OperationReflectiveProcessor, which registers the
@ReadMethod, @DeleteMethod and @WriteMethod annotated methods for
reflection and adds reflection hints for method return types.
@mhalbritter mhalbritter marked this pull request as ready for review July 18, 2022 14:19
@mhalbritter mhalbritter force-pushed the mh/aot-for-actuator branch from 13b6ab0 to eab6b96 Compare July 18, 2022 14:20
@snicoll snicoll self-assigned this Jul 19, 2022
@snicoll snicoll added type: enhancement A general enhancement theme: aot An issue related to Ahead-of-time processing labels Jul 19, 2022
@snicoll snicoll added this to the 3.0.0-M4 milestone Jul 19, 2022
snicoll pushed a commit that referenced this pull request Jul 19, 2022
Mainly adds reflection hints for the actuator infrastructure.
Also adds the OperationReflectiveProcessor, which registers the
@ReadMethod, @DeleteMethod and @WriteMethod annotated methods for
reflection and adds reflection hints for method return types.

See gh-31671
snicoll added a commit that referenced this pull request Jul 19, 2022
@snicoll snicoll closed this in 6ff338b Jul 19, 2022
@mhalbritter mhalbritter deleted the mh/aot-for-actuator branch July 19, 2022 12:12
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants