dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[BUG] zkNode taskQueue can not be removed when delete prorcessInstance

Open zhanghuidouble opened this issue 7 years ago • 7 comments

Describe the bug The taskQueue str is ${processInstancePriority}${processInstanceId}${taskInstancePriority}${taskId}${task executed by ip1},${ip2}...

but the ProcessInstanceService.deleteProcessInstanceById delete node is ${processInstancePriority}${processInstanceId}${taskInstancePriority}_${taskId}

To Reproduce Steps to reproduce the behavior, for example:

  1. shutdown all worker services
  2. start processInstance
  3. the taskInstance status is submit success,delete processInstance
  4. the task queue is still on the zk /taskflow/tasks_queue/

Which version of Easy Scheduler: -[dev-1.1.0]

zhanghuidouble avatar Oct 20 '19 03:10 zhanghuidouble

  1. 我不太明白为什么taskQueue 上节点拼接串要加上 worker ip 生成的字符串,其实这个串只到taskInstanceId 也是可以的,worker取到节点后,可以通过taskInstance中的workerGroupId 来查询到最新的具体的worker ip 有哪些,不知道有什么别的考虑?

  2. 这个串 是根据worker 分组的ip 拼接的,但是worker 分组的ip是可以随时编辑的,也就是目前的情况除非记录这个taskQueue 到taskInstance中,否则是无法在删除 工作流实例的时候再拼接处当时这个taskQueue 的

@qiaozhanwei

zhanghuidouble avatar Oct 20 '19 03:10 zhanghuidouble

this bug has already fixed in recent branch

Technoboy- avatar Oct 20 '19 15:10 Technoboy-

是的,我看了一下,最新的修复,也是重新拼接了一下后面的ip 串,但是我还是上面的问题,这个workerGroup中的ip是可以编辑的,如果在删除工作流实例的时候,workerGroup中的ip发生了变化,那么这个串也是不一致的,还是不能被删除。 @Technoboy-

zhanghuidouble avatar Oct 21 '19 02:10 zhanghuidouble

yes, we will discuss and reply u later or you can participate in wechat group

Technoboy- avatar Oct 21 '19 02:10 Technoboy-

very good idea, we will resolve it later!

davidzollo avatar Oct 28 '19 02:10 davidzollo

and could you add my wechat(510570367)? when added, please tell me your github ID is:zhanghuidouble , thx!

davidzollo avatar Oct 28 '19 02:10 davidzollo

Has been fixed in 1.3.x

CalvinKirs avatar Dec 11 '20 06:12 CalvinKirs