Skip to content

Conversation

artembilan
Copy link
Member

Related to: #10345

The Spring Retry project is in its sunset.
There is an alternative in spring-core.

  • Fix AMQP module according to recent changes in the Spring AMQP project related to migration onto Spring Core Retry
  • Introduce org.springframework.integration.core.RecoveryCallback as an alternative to RecoveryCallback from Spring Retry
  • Rework AmqpInboundChannelAdapter & AmqpInboundGateway to always populate ATTRIBUTES_HOLDER when there is an errorChannel or retryTemplate since Spring Core Retry does not operation with a context abstraction.
  • Make ErrorMessageSendingRecoverer based on the Spring Integration RecoveryCallback.
  • Change RequestHandlerRetryAdvice to accept new RecoveryCallback
  • Modify affected classes in Kafka module to use new RecoveryCallback API
  • The other related (spotted) work is marked as TODO for subsequent fixes for this Replace the use of Spring Retry with Core Retry #10345

Related to: spring-projects#10345

The Spring Retry project is in its sunset.
There is an alternative in `spring-core`.

* Fix AMQP module according to recent changes in the Spring AMQP project related to migration onto Spring Core Retry
* Introduce `org.springframework.integration.core.RecoveryCallback` as an alternative to `RecoveryCallback` from Spring Retry
* Rework `AmqpInboundChannelAdapter` & `AmqpInboundGateway` to always populate `ATTRIBUTES_HOLDER`
when there is an `errorChannel` or `retryTemplate` since Spring Core Retry does not operation with a `context` abstraction.
* Make `ErrorMessageSendingRecoverer` based on the Spring Integration `RecoveryCallback`.
* Change `RequestHandlerRetryAdvice` to accept new `RecoveryCallback`
* Modify affected classes in Kafka module to use new `RecoveryCallback` API
* The other related (spotted) work is marked as `TODO` for subsequent fixes for this spring-projects#10345
@artembilan
Copy link
Member Author

@cppwfs ,

I have assigned you to review, but since you are busy with Spring One (Thank you and good luck!), I'm going to merge this myself when build is green since this is critical fix for currently failing builds.

@artembilan artembilan merged commit dc4d5fd into spring-projects:main Aug 26, 2025
3 checks passed
@artembilan artembilan deleted the GH-10345-AMQP branch September 3, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant