alibaba / alibaba/DataX

当我尝试为DataX添加多个Hook时,在HookInvoker代码中,不能正确的去执行不同的Hook文件

Open
#1,990 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

1.在我当前的Hook文件夹下存在两个hook
![411b4022d7127ecab4393756acfa242f](https://github.com/alibaba/DataX/assets/48279964/0608fdce-135b-43ca-bcbc-845dfa57fe57)
这是预期结果
![1e70eacbd53552992009df4e1523a52b](https://github.com/alibaba/DataX/assets/48279964/ee777c66-f4c5-41c6-8a94-806e90766459)
![7a582ca8a5f61a2711ebaffc8d7a8e55](https://github.com/alibaba/DataX/assets/48279964/66356737-a8e3-464f-917e-17d84a29428b)
2.我尝试去调用这两个Hook
![5d76d6980db37e1837e51331dd000696](https://github.com/alibaba/DataX/assets/48279964/bec1d64f-a5e6-4082-af74-94003b1888f2)
3.当我修改源码为
![057b2bbdfa18b58c541a47714c6e8a7c](https://github.com/alibaba/DataX/assets/48279964/feb3e982-0845-4a07-ba48-95a4f4f32448)
这是得到的结果
![5796ae55fc5588aecf06d00c5afb4375](https://github.com/alibaba/DataX/assets/48279964/d6f671b9-cf12-4deb-9b23-5aa417a372a5)

当前BUG存在的位置com.alibaba.datax.core.container.util.HookInvoker中的doInvok()方法

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with com.alibaba.datax.core.container.util.HookInvoker and its doInvok() method, then reproduce the issue with two Hook files as described. Compare the observed execution with the expected results in the issue screenshots. Done means both configured Hooks are invoked correctly without modifying the source for each case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.