Skip to content
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

任务不能保证全局成功 #4

Closed
cjdxhjj opened this issue Oct 12, 2015 · 3 comments
Closed

任务不能保证全局成功 #4

cjdxhjj opened this issue Oct 12, 2015 · 3 comments

Comments

@cjdxhjj
Copy link

cjdxhjj commented Oct 12, 2015

节点只能统计或保证执行分片的事务性,没办法在全局上做一个控制,可能出现部分数据操作失败,建议在每个分片执行前和全部分片完成时检查zk中是否有失败节点,如果有,就回调任务中roolback接口将节点前面做过的分片任务进行回滚。建议在任务上加上roolback相关回调

@terrymanu
Copy link
Member

技术上可行,但使用perpetual类型Job,理想的做法是作业一直不停止,不停的返回数据。
加上全体数据的rollback是否具有通用性,毕竟大多数情况下rollback全部作业处理的数据,性能瓶颈会比较大
另一个问题就是需要开启executionMonitor才能判断是否全部作业都已经运行完毕,也就是说,全局回调会受配置的影响,会大幅增加使用的复杂度

欢迎讨论,目前的想法是使用OneOff类型的job可以自由化定制,但有好的想法请留言

@terrymanu terrymanu changed the title 任务不能保证全局成功 [未确定的问题] 任务不能保证全局成功 Oct 29, 2015
@gl2001wl
Copy link
Contributor

感觉加入分布式事务的feature在调度平台里不适合

@terrymanu
Copy link
Member

增加前置和后置任务功能,与#2合并

@terrymanu terrymanu changed the title [未确定的问题] 任务不能保证全局成功 [Duplicated] 任务不能保证全局成功 Mar 8, 2016
@terrymanu terrymanu changed the title [Duplicated] 任务不能保证全局成功 任务不能保证全局成功 Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants