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

Fix worker timeout/yide #369

Merged
merged 2 commits into from
Jan 18, 2021
Merged

Fix worker timeout/yide #369

merged 2 commits into from
Jan 18, 2021

Conversation

shikimoe
Copy link
Contributor

@shikimoe shikimoe force-pushed the FIX-worker-timeout/yide branch 2 times, most recently from 3c73b22 to da8035f Compare January 14, 2021 02:23
@shikimoe shikimoe force-pushed the FIX-worker-timeout/yide branch from da8035f to 6bda833 Compare January 18, 2021 02:09
submit(taskAttempt, true);
//kill worker when worker time out
if (workerPool.containsKey(taskAttemptId)) {
Worker worker = workerFactory.getWorker(workerPool.get(taskAttemptId));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个行为比较关键,需要打印debug日志才行

Worker worker = workerFactory.getWorker(workerPool.get(taskAttemptId));
worker.shutdown();
workerPool.remove(taskAttemptId);
workerToken.release();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

像这种顺序做的步骤,需要考虑其中任意一步出错时,是否会导致不一致等问题。

@shikimoe shikimoe force-pushed the FIX-worker-timeout/yide branch from d2861fc to 617c5f6 Compare January 18, 2021 08:37
@dyng dyng merged commit 19e5fbf into master Jan 18, 2021
@dyng dyng deleted the FIX-worker-timeout/yide branch January 18, 2021 08:49
@shikimoe shikimoe restored the FIX-worker-timeout/yide branch January 18, 2021 09:35
@MeloQiao MeloQiao deleted the FIX-worker-timeout/yide branch January 19, 2021 04:45
guofan1991 pushed a commit that referenced this pull request Jun 28, 2021
* fix kill worker

fix bug

* add log
steven-hyp pushed a commit that referenced this pull request Dec 30, 2021
* fix kill worker

fix bug

* add log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants