You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "cuihaohao (via GitHub)" <gi...@apache.org> on 2026/01/14 05:30:26 UTC

[I] [Bug] We found that Spring @Transactional does not work when using Dubbo 3 Triple protocol with IDL [dubbo]

cuihaohao opened a new issue, #16000:
URL: https://github.com/apache/dubbo/issues/16000

   ### Pre-check
   
   - [x] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Dubbo Version
   
   dubbo java 3.3.1 , openJdk 1.8
   
   ### Steps to reproduce this issue
   
   The method invocation defaults to the asynchronous implementation, causing Spring @transactional to not take effect. I would prefer not to override the async method. 
   
   ### What you expected to happen
   
   Are there any better solutions to address this issue?
   
   ### Anything else
   
   _No response_
   
   ### Do you have a (mini) reproduction demo?
   
   - [ ] Yes, I have a minimal reproduction demo to help resolve this issue more effectively!
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Bug] We found that Spring @Transactional does not work when using Dubbo 3 Triple protocol with IDL [dubbo]

Posted by "heliang666s (via GitHub)" <gi...@apache.org>.
heliang666s commented on issue #16000:
URL: https://github.com/apache/dubbo/issues/16000#issuecomment-3748251765

   Could you please provide a demo to me? @cuihaohao 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Bug] We found that Spring @Transactional does not work when using Dubbo 3 Triple protocol with IDL [dubbo]

Posted by "cuihaohao (via GitHub)" <gi...@apache.org>.
cuihaohao commented on issue #16000:
URL: https://github.com/apache/dubbo/issues/16000#issuecomment-3748901906

   [tx.zip](https://github.com/user-attachments/files/24611426/tx.zip)  application.yml 替换成本地的zk和mysql 运行即可复现


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Bug] We found that Spring @Transactional does not work when using Dubbo 3 Triple protocol with IDL [dubbo]

Posted by "heliang666s (via GitHub)" <gi...@apache.org>.
heliang666s commented on issue #16000:
URL: https://github.com/apache/dubbo/issues/16000#issuecomment-3803387861

   This is not a transactional annotation failure, but a consequence of **different entry methods generated by Dubbo Triple**. For the Triple protocol, RPC calls actually enter the **generated service entry method** (e.g. `greet(req, StreamObserver)` or its async variant), not the `greet(req)` method where `@Transactional` was added. The current call path invokes `greet(req)` via **self-invocation**, which is not intercepted by Spring AOP, so the transaction does not take effect. To make transactions work for RPC calls, `@Transactional` must be applied to the actual RPC entry method, the class itself, or the transactional logic should be moved to another Spring Bean and invoked through a proxy. @cuihaohao 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [Bug] We found that Spring @Transactional does not work when using Dubbo 3 Triple protocol with IDL [dubbo]

Posted by "heliang666s (via GitHub)" <gi...@apache.org>.
heliang666s closed issue #16000: [Bug] We found that Spring @Transactional does not work when using Dubbo 3 Triple protocol with IDL
URL: https://github.com/apache/dubbo/issues/16000


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org