cwqbupt opened a new issue, #653: URL: https://github.com/apache/incubator-seata-samples/issues/653
我运行至少遇到这几个问题: 1 :bussiness默认AT mode而不是XA mode 2:order项目缺少controller文件,以致于bussniss找不到rpc create方法 3:storage项目显示xid为null: 2024-04-15 21:41:57.315 INFO 24345 --- [nio-8081-exec-1] org.apache.seata.service.StorageService : Stock Service Begin ... xid: null 2024-04-15 21:41:57.315 INFO 24345 --- [nio-8081-exec-1] org.apache.seata.service.StorageService : Deducting inventory SQL: update stock_tbl set count = count - 2 where commodity_code = C00321 2024-04-15 21:41:57.322 INFO 24345 --- [nio-8081-exec-1] org.apache.seata.service.StorageService : Stock Service End ... ^@^@^@^@^@2024-04-15 21:46:23.923 INFO 24345 --- [nio-8081-exec-3] org.apache.seata.service.StorageService : Stock Service Begin ... xid: null 2024-04-15 21:46:23.924 INFO 24345 --- [nio-8081-exec-3] org.apache.seata.service.StorageService : Deducting inventory SQL: update stock_tbl set count = count - 2 where commodity_code = C00321 2024-04-15 21:46:23.925 INFO 24345 --- [nio-8081-exec-3] org.apache.seata.service.StorageService : Stock Service End ... 最终结果是:purchase运行失败,但是库存却减少了: mysql> select * from stock_tbl; +----+----------------+-------+ | id | commodity_code | count | +----+----------------+-------+ | 24 | C00321 | 98 | +----+----------------+-------+ -- 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: dev-unsubscr...@seata.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@seata.apache.org For additional commands, e-mail: dev-h...@seata.apache.org