Open linghengqian opened 1 month ago
@slievrly Should we deploy the seata-server like we did before?
@linghengqian What are the scenarios for using the org.apache.seata:seata-mock-server dependency? The org.apache.seata:seata-mock-server was originally designed to facilitate testing the full transaction process on the SDK side for the Seata project itself. Does ShardingSphere also require such mock functionality?
@linghengqian What are the scenarios for using the org.apache.seata:seata-mock-server dependency? The org.apache.seata:seata-mock-server was originally designed to facilitate testing the full transaction process on the SDK side for the Seata project itself. Does ShardingSphere also require such mock functionality?
@slievrly
org.apache.curator.test.TestingServer
located at https://github.com/apache/curator/blob/apache-curator-5.7.1/curator-test/src/main/java/org/apache/curator/test/TestingServer.java .org.apache.shardingsphere.transaction.base.seata.at.fixture.MockSeataServer
in https://github.com/apache/shardingsphere/blob/95c98e0b72746a3520ffb81efc9160ab6522d8bd/kernel/transaction/type/base/seata-at/src/test/java/org/apache/shardingsphere/transaction/base/seata/at/fixture/MockSeataServer.java exists.The current seata-mock-server is only provided for testing Seata clients and multi-version protocol interoperability. When the mock-server was designed, there wasn't any consideration to make it available externally, but it seems that this can be considered now. @slievrly @Bughue
@linghengqian @funky-eyes Thank you very much for your feedback. We will consider implementing this capability in version 2.3.0.
Ⅰ. Issue Description
org.apache.seata:seata-mock-server
depends on the non-existentorg.apache.seata:seata-server
. See https://mvnrepository.com/artifact/org.apache.seata/seata-mock-server/2.1.0 .Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
org.apache.seata:seata-mock-server
must depend on the non-existentorg.apache.seata:seata-server
, how can we useorg.apache.seata.mockserver.MockServer
?Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Minimal yet complete reproducer code (or URL to code):
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
java -version
):2.1.0
postgres:16.3-bookworm
uname -a
):Linux DESKTOP-2OCN434 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux