-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Mock Server classes for seata-all #5343
Comments
The above information can not see the problem, because 1.4.2 to 1.6 did not make major adjustments to the rpc module, and your error is rpc timeout, you should check whether your network can connect to tc |
@a364176773 I would like to know what information I can refer to? I didn't see any special configuration for RPC in the https://github.com/linghengqian/mock-seata-sever-test I provided. I just mocked a Seata Server using netty classes, did any big changes happen between Seata 1.4.2 and Seata 1.5.1? |
No, this can be proven by running a sample from 1.4.2 to 1.5.1 without mock |
|
@linghengqian I have repeated this question, and I will give you the conclusion later. |
@linghengqian Take a look at the changes first, or just download the repository code to run. I'll explain why later. |
@linghengqian In the past TM and RM messages were sent to TC by default using merged MergedWarpMessage messages.In version 1.6.x, TM messages are no longer merged by default for performance reasons, including: GlobalBeginRequest, GlobalCommitRequest, and GlobalRollbackRequest. |
|
@linghengqian Through this question, I realized that we needed to maintain our own mock-server to ensure version compatibility. I've had a quick look at the mock-server code you've written, and I think you can contribute an original version of mock-server if you want. Are you interested ? |
@linghengqian I noticed that you are doing something related to GraalVM, and Seata is also doing it. We can communicate with each other about the progress. #5234 |
|
|
OK, anyone willing to contribute is welcome. |
@wangliang181230 Pls take a look at suggestions for using metadata configuration and Spring code. |
@slievrly OK. |
@linghengqian #5234 has been put on hold for the time, because of some other PRs merged, resulting in some code incompatibilities. At present, I am making some changes on the
On the
At present, |
|
Ⅰ. Issue Description
I noticed a unit test related issue in Make ShardingSphere Proxy in GraalVM Native Image form available shardingsphere#21347 while trying to collect GraalVM reachability metadata for seata-all. Can't mock Seata Server normally under Seata 1.6.1.
Minimal reproducible unit tests and reproduction steps are at https://github.com/linghengqian/mock-seata-sever-test . At the same time,
mock-seata-v142
is the unit test of seata-all:1.4.2, andmock-seata-v161
is the unit test of seata-all:1.6.1.Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
17
1.6.1
Ubuntu
The text was updated successfully, but these errors were encountered: