wuchaococo opened a new issue, #7166:
URL: https://github.com/apache/incubator-seata/issues/7166

   <!-- Please do not use this issue template to report security 
vulnerabilities but refer to our [security 
policy](https://github.com/seata/seata/security/policy). -->
   
   - [ ] I have searched the [issues](https://github.com/seata/seata/issues) of 
this repository and believe that this is not a duplicate.
   
   ### Ⅰ. Issue Description
   
   
   ### Ⅱ. Describe what happened
   
   XA事务模型下,写入的数据,在本事务内无法查询的,
   
   @Override
        @GlobalTransactional(timeoutMills = 300000, name = 
"springboot-feign-seata-xa")
        public void test1()
        {
                   //写入数据
                jdbcTemplate.update("insert into account_tbl(user_id,money) 
values('" + "XXXX" + "','10000') ");
                   //查询数据,这里查询不到数据
                List<Map<String, Object>> maps = 
jdbcTemplate.queryForList("select * from account_tbl");
                System.out.println("query size =" + maps.size());
        }
   
   
   ```
   Just paste your stack trace here!
   ```
   
   
   ### Ⅲ. Describe what you expected to happen
   
   
   ### Ⅳ. How to reproduce it (as minimally and precisely as possible)
   
   2025-02-17 16:21:50.019 [http-nio-8084-exec-2] INFO  
o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 
'dispatcherServlet'
   2025-02-17 16:21:50.019 [http-nio-8084-exec-2] INFO  
o.s.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
   2025-02-17 16:21:50.020 [http-nio-8084-exec-2] INFO  
o.s.web.servlet.DispatcherServlet - Completed initialization in 1 ms
   2025-02-17 16:21:50.076 [http-nio-8084-exec-2] INFO  
o.a.s.tm.TransactionManagerHolder - TransactionManager Singleton 
org.apache.seata.tm.DefaultTransactionManager@50f94fe
   2025-02-17 16:21:50.093 [http-nio-8084-exec-2] INFO  
o.a.s.t.api.DefaultGlobalTransaction - Begin new global transaction 
[192.168.43.113:8091:3189168445432930308]
   2025-02-17 16:21:50.143 [http-nio-8084-exec-2] INFO  
o.a.seata.rm.AbstractResourceManager - branch register success, 
xid:192.168.43.113:8091:3189168445432930308, branchId:3189168445432930309, 
lockKeys:null
   2025-02-17 16:21:50.171 [http-nio-8084-exec-2] INFO  
o.a.seata.rm.AbstractResourceManager - branch register success, 
xid:192.168.43.113:8091:3189168445432930308, branchId:3189168445432930310, 
lockKeys:null
   query size =0
   2025-02-17 16:21:50.180 [http-nio-8084-exec-2] INFO  
o.a.s.t.api.DefaultGlobalTransaction - transaction 
192.168.43.113:8091:3189168445432930308 will be commit
   2025-02-17 16:21:50.193 [rpcDispatch_RMROLE_1_1_16] INFO  
o.a.s.c.r.p.c.RmBranchCommitProcessor - rm client handle branch commit 
process:BranchCommitRequest{xid='192.168.43.113:8091:3189168445432930308', 
branchId=3189168445432930309, branchType=XA, 
resourceId='jdbc:mysql://127.0.0.1:3306/seata', applicationData='null'}
   2025-02-17 16:21:50.196 [rpcDispatch_RMROLE_1_1_16] INFO  
o.apache.seata.rm.AbstractRMHandler - Branch committing: 
192.168.43.113:8091:3189168445432930308 3189168445432930309 
jdbc:mysql://127.0.0.1:3306/seata null
   2025-02-17 16:21:50.200 [rpcDispatch_RMROLE_1_1_16] INFO  
o.a.s.r.d.xa.ResourceManagerXA - 
192.168.43.113:8091:3189168445432930308-3189168445432930309 was committed.
   2025-02-17 16:21:50.201 [rpcDispatch_RMROLE_1_1_16] INFO  
o.apache.seata.rm.AbstractRMHandler - Branch commit result: PhaseTwo_Committed
   2025-02-17 16:21:50.209 [rpcDispatch_RMROLE_1_2_16] INFO  
o.a.s.c.r.p.c.RmBranchCommitProcessor - rm client handle branch commit 
process:BranchCommitRequest{xid='192.168.43.113:8091:3189168445432930308', 
branchId=3189168445432930310, branchType=XA, 
resourceId='jdbc:mysql://127.0.0.1:3306/seata', applicationData='null'}
   2025-02-17 16:21:50.209 [rpcDispatch_RMROLE_1_2_16] INFO  
o.apache.seata.rm.AbstractRMHandler - Branch committing: 
192.168.43.113:8091:3189168445432930308 3189168445432930310 
jdbc:mysql://127.0.0.1:3306/seata null
   2025-02-17 16:21:50.211 [rpcDispatch_RMROLE_1_2_16] INFO  
o.a.s.r.d.xa.ResourceManagerXA - 
192.168.43.113:8091:3189168445432930308-3189168445432930310 was committed.
   2025-02-17 16:21:50.211 [rpcDispatch_RMROLE_1_2_16] INFO  
o.apache.seata.rm.AbstractRMHandler - Branch commit result: PhaseTwo_Committed
   2025-02-17 16:21:50.220 [http-nio-8084-exec-2] INFO  
o.a.s.t.api.DefaultGlobalTransaction - transaction end, xid = 
192.168.43.113:8091:3189168445432930308
   2025-02-17 16:21:50.221 [http-nio-8084-exec-2] INFO  
o.a.s.t.api.DefaultGlobalTransaction - 
[192.168.43.113:8091:3189168445432930308] commit status: Committed
   
   
   Minimal yet complete reproducer code (or URL to code):
   
   
   
   ### Ⅴ. Anything else we need to know?
   
   
   ### Ⅵ. Environment:
   
   - JDK version(e.g. `java -version`):  jdk8
   - Seata client/server version:   2.1.0
   - Database version: mysql5.1.7 / Oracle11g
   - OS(e.g. `uname -a`): window 
   - Others:


-- 
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-unsubscr...@seata.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to