Skip to content

Conversation

artembilan
Copy link
Member

Fixes: #3740
Issue link: #3740

Even if Kotlin suspend functions are called properly, the acknowledgement is not called because this kind of method is not treated as an asyncReplies mode

  • Fix HandlerAdapter to check for KotlinDetector.isSuspendingFunction() in addition to CompletableFuture & Mono
  • Adjust EnableKafkaKotlinCoroutinesTests.kt to verify that acknowledgement has been called by the Framework

Auto-cherry-pick to 3.3.x & 3.2.x

… functions

Fixes: spring-projects#3740
Issue link: spring-projects#3740

Even if Kotlin `suspend` functions are called properly, the acknowledgement is not called
because this kind of method is not treated as an `asyncReplies` mode

* Fix `HandlerAdapter` to check for `KotlinDetector.isSuspendingFunction()`
in addition to `CompletableFuture` & `Mono`
* Adjust `EnableKafkaKotlinCoroutinesTests.kt` to verify that `acknowledgement` has been called
by the Framework

**Auto-cherry-pick to `3.3.x` & `3.2.x`**
@sobychacko sobychacko merged commit b0db30c into spring-projects:main Feb 13, 2025
3 checks passed
@artembilan
Copy link
Member Author

Thanks for merging!
It could not cherry-pick automatically: will do that manually shortly.

@artembilan artembilan deleted the GH-3740 branch February 13, 2025 22:38
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.

Async suspend function listener not automatically acknowledged?
2 participants