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

DM subtask stage shows running but in fact it's paused #7512

Open
lance6716 opened this issue Nov 2, 2022 · 0 comments
Open

DM subtask stage shows running but in fact it's paused #7512

lance6716 opened this issue Nov 2, 2022 · 0 comments

Comments

@lance6716
Copy link
Contributor

lance6716 commented Nov 2, 2022

What did you do?

https://ci2.pingcap.net/blue/organizations/jenkins/dm_ghpr_integration_test/detail/dm_ghpr_integration_test/10575/pipeline/

tiflow/dm/worker/subtask.go

Lines 640 to 643 in d88be9f

go st.fetchResultAndUpdateStage(pr)
go cu.Resume(ctx, pr)
st.setStageAndResult(pb.Stage_Running, nil) // clear previous result

there's a "set stage to paused" in fetchResultAndUpdateStage of line 640, it will race with st.setStageAndResult(pb.Stage_Running, nil) in line 643.

What did you expect to see?

No response

What did you see instead?

No response

Versions of the cluster

DM version (run dmctl -V or dm-worker -V or dm-master -V):

(paste DM version here, and you must ensure versions of dmctl, DM-worker and DM-master are same)

Upstream MySQL/MariaDB server version:

(paste upstream MySQL/MariaDB server version here)

Downstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):

(paste TiDB cluster version here)

How did you deploy DM: tiup or manually?

(leave TiUP or manually here)

Other interesting information (system version, hardware config, etc):

>
>

current status of DM cluster (execute query-status <task-name> in dmctl)

(paste current status of DM cluster here)
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