Comments (4)
代码片段对于seata的回复第二阶段的ACK消息,不需要处理失败的情况,如果失败,服务会ACK超时,会重新触发流程,重新给seata客户端发送第二阶段的回滚或者提交请求
from seata-go-server.
代码片段对于seata的回复第二阶段的ACK消息,不需要处理失败的情况,如果失败,服务会ACK超时,会重新触发流程,重新给seata客户端发送第二阶段的回滚或者提交请求
我的疑问不是流程上的疑问,是代码上的疑问。 前面描述的两个代码片段中,片段1没有在入队失败情况下调用releaseCMD , 片段二 在失败情况下调用了releaseCMD, 两处不一样的原因是什么呢?
from seata-go-server.
由于ACK不需要关注错误的情况,所以可以偷懒少写一点代码,对于正确性不产生影响。仅此而已。第二种情况,需要处理错误是因为需要调用callback,把错误告诉客户端。而 ACK的逻辑不需要回复客户端。
from seata-go-server.
由于ACK不需要关注错误的情况,所以可以偷懒少写一点代码,对于正确性不产生影响。仅此而已。第二种情况,需要处理错误是因为需要调用callback,把错误告诉客户端。而 ACK的逻辑不需要回复客户端。
了解;可以统一下吧。要么都回收到sync.pool, 要么都不回收了得了。
P.S. 多谢解答
from seata-go-server.
Related Issues (19)
- Support Service Registry with Nacos
- Support Service Registry with Eureka
- Support Service Registry with Zookeeper
- Support Service Registry with Sofa
- K8S Operator HOT 1
- Support TiKV as meta Storage
- Support S3 as meta Storage
- Metadata storage that you want to support?
- seata.io/seata-go-server HOT 2
- 怎么用这个东西,有client吗
- 部署完之后具体如何在golang程序中使用?可以写个client文档吗? HOT 5
- seata server docker节点经常挂掉 HOT 5
- x509 certificate invalid when docker compose up -d
- 少了个冒号。。。。 HOT 1
- Install taas! Can i need install Seata? HOT 3
- Support Service Registry with Etcd HOT 2
- Support Service Registry with Redis
- Support Service Registry with Consul HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seata-go-server.