Replies: 1 comment
-
It seems that on the Provider side, I need to implement a Filter along with a Filter.Listener. During the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pre-check
Apache Dubbo Component
Java SDK (apache/dubbo)
Details
Description:
I am experiencing an issue where using AsyncContext in a Dubbo Provider does not trigger the consumer's retry logic when an exception occurs. Instead, the exception is directly thrown to the consumer, bypassing any retry mechanism that should be in place.
Steps to Reproduce:
Implement asynchronous logic in a Dubbo Provider using AsyncContext.
Within the execution logic, intentionally cause an exception.
Use AsyncContext.write() to return the exception to the consumer.
Expected Result:
The consumer should detect the exception and initiate a retry according to its configured retry mechanism.
Actual Result:
The exception is directly thrown to the consumer without triggering any retry attempts.
Test Code:
Provider
Consumer
// Example code that showcases the issue
Environment:
Dubbo version: [2.7.18]
Java version: [1.8]
Operating System: [Mac OS X]
Additional Information:
If there are any additional configurations or logs related to the issue, they can be provided upon request.
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions