-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
[Bug] [Worker] concurrent task response occasional cause status error #13409
Comments
Search before asking
What happenedWhen a task finish very soon, like within 1 seconds, may stuck running status forever, although it had finish successfully. while digging into code and log, we found that, when worker receive task, it will send two So, master may handle
What you expected to happenThe final state of task should be How to reproduceKind of hard to reproduce, we can try create a sql task with short run statment like then return this process multiple times, untill task node stuck at Anything elseNo response Version2.0.x Are you willing to submit PR?
Code of Conduct
|
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
|
Which version are you using? @KEN-LJQ |
@SbloodyS 2.0.7 |
Search before asking
What happened
When a task finish very soon, like within 1 seconds, may stuck running status forever, although it had finish successfully.
while digging into code and log, we found that, when worker receive task, it will send two
![企业微信截图_16729927376406](https://user-images.githubusercontent.com/16650282/212637861-1d9f1a4a-81c9-4247-a962-54f88d9319af.png)
ack
response first, and sendfinish
response while task finish.But when task finish very fast, those 3 response may receive by master at the same time.
So, master may handle
finish
repsonse beforeack
response, which lead to wrong task status, and we can see it from db binlogrunning
success
running
What you expected to happen
The final state of task should be
success
, which state=7How to reproduce
Kind of hard to reproduce, we can try create a sql task with short run statment like
![企业微信截图_16729861779567](https://user-images.githubusercontent.com/16650282/212640964-9e801969-cb13-45ac-b158-a2c86f8ae4d2.png)
create table
, and create a branch merge like belovethen return this process multiple times, untill task node stuck at
running
state foreverAnything else
No response
Version
2.0.x
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: