-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: native support for retry template factory #2456
Conversation
I just saw that the previously mentioned Edit I saw that this class is defined in |
I used the package name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @klopfdreh, looks good - but have added some minor comments. Also, please submit your changes against 4.1.x
instead of main
, so that we can get them into the 2024.0.x
release train as well.
...nfig-client/src/main/java/org/springframework/cloud/config/client/aot/ConfigClientHints.java
Outdated
Show resolved
Hide resolved
...nfig-client/src/main/java/org/springframework/cloud/config/client/aot/ConfigClientHints.java
Outdated
Show resolved
Hide resolved
a84f6a9
to
b4abb15
Compare
I force pushed the change so that they are done against |
b4abb15
to
ce2042b
Compare
Hi, @OlgaMaciaszek ! Would you mind explaining me why do we need to change that |
I see |
7fa2921
to
de5ba80
Compare
Hi @artembilan, when it comes to Config, I mainly take care of any AOT/ native integrationn issues; @ryanjbaxter or @spencergibb may have more details regarding that implementation, so let's check with them on that. |
@OlgaMaciaszek / @artembilan - the build should work, now. I postpone further work until it is clarified if the changes are needed or the retry integration should be refactored. |
IMO the change should be made here spring-projects/spring-retry#470 if the issue lies in Spring Retry. |
@ryanjbaxter there are two classes require reflections: RetryTemplateFactory which is located in Spring Cloud Config and RetryTemplate which is located in Spring Retry. I could modify this PR to only cover the class located in Spring Cloud Config. |
The first one is in bootstrap before boot configures loggers, the second is for config data and its special deferred logger. I think both are attempts at sane logging in an early phase of cloud or boot respectively |
@klopfdreh agree, I think that only the classes in Spring Cloud Config should be configured here and configure the |
Thanks, @ryanjbaxter and @spencergibb , for explanation! |
de5ba80
to
2af990f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @klopfdreh. Looks good. Just a cosmetic change to add.
...nfig-client/src/main/java/org/springframework/cloud/config/client/aot/ConfigClientHints.java
Outdated
Show resolved
Hide resolved
2af990f
to
b86a026
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks a lot for all the help @OlgaMaciaszek / @ryanjbaxter / @spencergibb / @artembilan - we ported 11 of our task applications to Spring Boot Native and I made a lot of changes to various frameworks like AWS SDK V2 for Java / AWS CRT for Java / Spring Cloud AWS / joda-time / github-api / spot bugs / Snappy Java / Micrometer Prometheus RSocket Client to fix issues regarding native images. When the new version of Spring Cloud Data Flow is released we are starting with tests. It is so great that you helped us out here! 👍 |
Thanks @klopfdreh. Sounds great! Don't hesitate to reach out if there's any other issue. |
Fixes: #2439