-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 new seata samples #1041
Add new seata samples #1041
Conversation
Thanks for your pr ,@xingfudeshi, I don't quite understand why the demo needs to be completely replaced. The existing one looks simple enough, can you list some? |
Hi, @wxbty
Therefore, I re-wrote a document, and the PR has been submitted here [2], and this sample is matched with that document. This time the document does not rely on any third-party components, and only requires dubbo and seata to complete, I believe It will definitely give users a good experience. [1]https://lists.apache.org/thread/6853sjp0qxt2rv975fbkhvf4rpo1fsnv |
Okay, I've got the background, I will check it later. In addition, if you use dubbo-sample examples, it is recommended that the document add one-click test examples: ./test/run-tests.sh 2-advanced/dubbo-samples-seata. It will start the relevant components and services, start it once, and finally execute the test case |
@slievrly @chickenlj PTAL |
Ok.I'll do that. |
@xingfudeshi Please refer to the original example to restore the two files case-configuration.yml and case-versions.conf. The example of dubbo-sample not only allows users to manually execute unit tests, but also is the source of automatic integration testing for dubbo main repository workflow. Automatic testing requires One-click testing, this is the role of case-configuration.yml. And case-versions.conf can help us test the dependencies of the specified version matrix |
# Conflicts: # 2-advanced/dubbo-samples-seata/case-configuration.yml # 2-advanced/dubbo-samples-seata/case-versions.conf # 2-advanced/dubbo-samples-seata/deploy/All.yml # 2-advanced/dubbo-samples-seata/deploy/Namespace.yml # 2-advanced/dubbo-samples-seata/deploy/account/Deployment.yml # 2-advanced/dubbo-samples-seata/deploy/business/Deployment.yml # 2-advanced/dubbo-samples-seata/deploy/docker-compose/mysql/sql/undo-log.sql # 2-advanced/dubbo-samples-seata/deploy/order/Deployment.yml # 2-advanced/dubbo-samples-seata/deploy/seata-mysql/ConfigMap.yml # 2-advanced/dubbo-samples-seata/deploy/seata-mysql/Deployment.yml # 2-advanced/dubbo-samples-seata/deploy/seata-mysql/PersistentVolume.yml # 2-advanced/dubbo-samples-seata/deploy/seata-mysql/PersistentVolumeClaim.yml # 2-advanced/dubbo-samples-seata/deploy/seata-mysql/Service.yml # 2-advanced/dubbo-samples-seata/deploy/seata-server/Deployment.yml # 2-advanced/dubbo-samples-seata/deploy/seata-server/Service.yml # 2-advanced/dubbo-samples-seata/deploy/stock/Deployment.yml # 2-advanced/dubbo-samples-seata/dubbo-samples-seata-account/pom.xml # 2-advanced/dubbo-samples-seata/dubbo-samples-seata-account/src/main/resources/application.yml # 2-advanced/dubbo-samples-seata/dubbo-samples-seata-business/pom.xml # 2-advanced/dubbo-samples-seata/dubbo-samples-seata-business/src/main/java/org/apache/dubbo/samples/seata/business/service/BusinessServiceImpl.java # 2-advanced/dubbo-samples-seata/dubbo-samples-seata-order/pom.xml # 2-advanced/dubbo-samples-seata/dubbo-samples-seata-order/src/main/resources/application.yml # 2-advanced/dubbo-samples-seata/dubbo-samples-seata-stock/pom.xml # 2-advanced/dubbo-samples-seata/dubbo-samples-seata-stock/src/main/resources/application.yml # 2-advanced/dubbo-samples-seata/pom.xml
Done. |
What about changing to java8 version? Java17 seems to have a problem with the old seata-sample, and the test is ignored during execution. |
Ok.I'll take a look on it. |
I have been trying for a long time but still cannot succeed. Please help me check where the problem is
I don't want to introduce any extra middleware to increase the time cost of user experience data, so I use Multicast as the registry. |
I can run these samples through a regular spring boot application without any problem |
On my server, it also passed the test and there seems to be no problem. @AlbumenJ PTAL again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xingfudeshi PTAL
Hello Dubbo dev team, I am PPMC from Apache Seata. I have submitted a new Seata example that uses minimal third-party dependencies and can help beginners quickly understand how Seata and Dubbo work together.
Also, later this week, I will submit the PR of the usage documentation for seata to dubbo websites