This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 188
fix data race in import unit(loader) (#349) #353
Merged
IANTHEREAL
merged 6 commits into
pingcap:release-1.0
from
sre-bot:release-1.0-fcaab27207c7
Nov 15, 2019
Merged
fix data race in import unit(loader) (#349) #353
IANTHEREAL
merged 6 commits into
pingcap:release-1.0
from
sre-bot:release-1.0-fcaab27207c7
Nov 15, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` 2019-11-13T14:04:06.914Z] WARNING: DATA RACE [2019-11-13T14:04:06.914Z] Write at 0x00c0003bb5a0 by goroutine 97: [2019-11-13T14:04:06.914Z] github.com/pingcap/dm/dm/worker.(*SubTask).Init() [2019-11-13T14:04:06.914Z] /home/jenkins/agent/workspace/dm_ghpr_test/go/src/github.com/pingcap/dm/dm/worker/subtask.go:111 +0xf5 [2019-11-13T14:04:06.914Z] github.com/pingcap/dm/dm/worker.(*SubTask).Run() [2019-11-13T14:04:06.914Z] /home/jenkins/agent/workspace/dm_ghpr_test/go/src/github.com/pingcap/dm/dm/worker/subtask.go:169 +0x2cc [2019-11-13T14:04:06.914Z] github.com/pingcap/dm/dm/worker.(*SubTask).Resume() [2019-11-13T14:04:06.914Z] /home/jenkins/agent/workspace/dm_ghpr_test/go/src/github.com/pingcap/dm/dm/worker/subtask.go:412 +0x80e [2019-11-13T14:04:06.914Z] github.com/pingcap/dm/dm/worker.(*Worker).handleTask() [2019-11-13T14:04:06.914Z] /home/jenkins/agent/workspace/dm_ghpr_test/go/src/github.com/pingcap/dm/dm/worker/worker.go:880 +0x1ecc [2019-11-13T14:04:06.914Z] github.com/pingcap/dm/dm/worker.(*Worker).Start.func1() [2019-11-13T14:04:06.914Z] /home/jenkins/agent/workspace/dm_ghpr_test/go/src/github.com/pingcap/dm/dm/worker/worker.go:178 +0x80 [2019-11-13T14:04:06.914Z] [2019-11-13T14:04:06.914Z] Previous read at 0x00c0003bb5a0 by goroutine 147: [2019-11-13T14:04:06.914Z] github.com/pingcap/dm/dm/worker.(*Worker).doFetchDDLInfo() [2019-11-13T14:04:06.914Z] /home/jenkins/agent/workspace/dm_ghpr_test/go/src/github.com/pingcap/dm/dm/worker/worker.go:398 +0x203 [2019-11-13T14:04:06.914Z] github.com/pingcap/dm/dm/worker.(*Worker).FetchDDLInfo.func1() [2019-11-13T14:04:06.914Z] /home/jenkins/agent/workspace/dm_ghpr_test/go/src/github.com/pingcap/dm/dm/worker/worker.go:374 +0x98 [2019-11-13T14:04:06.915Z] [2019-11-13T14:04:06.915Z] Goroutine 97 (running) created at: [2019-11-13T14:04:06.915Z] github.com/pingcap/dm/dm/worker.(*Worker).Start() [2019-11-13T14:04:06.915Z] /home/jenkins/agent/workspace/dm_ghpr_test/go/src/github.com/pingcap/dm/dm/worker/worker.go:176 +0x26f [2019-11-13T14:04:06.915Z] github.com/pingcap/dm/dm/worker.(*Server).Start.func1() [2019-11-13T14:04:06.915Z] /home/jenkins/agent/workspace/dm_ghpr_test/go/src/github.com/pingcap/dm/dm/worker/server.go:87 +0x96 [2019-11-13T14:04:06.915Z] [2019-11-13T14:04:06.915Z] Goroutine 147 (running) created at: [2019-11-13T14:04:06.915Z] github.com/pingcap/dm/dm/worker.(*Worker).FetchDDLInfo() [2019-11-13T14:04:06.915Z] /home/jenkins/agent/workspace/dm_ghpr_test/go/src/github.com/pingcap/dm/dm/worker/worker.go:372 +0x1f4 [2019-11-13T14:04:06.915Z] github.com/pingcap/dm/dm/worker.(*Server).FetchDDLInfo() [2019-11-13T14:04:06.915Z] /home/jenkins/agent/workspace/dm_ghpr_test/go/src/github.com/pingcap/dm/dm/worker/server.go:286 +0x28b [2019-11-13T14:04:06.915Z] github.com/pingcap/dm/dm/pb._Worker_FetchDDLInfo_Handler() [2019-11-13T14:04:06.915Z] /home/jenkins/agent/workspace/dm_ghpr_test/go/src/github.com/pingcap/dm/dm/pb/dmworker.pb.go:3865 +0xe5 [2019-11-13T14:04:06.915Z] google.golang.org/grpc.(*Server).processStreamingRPC() [2019-11-13T14:04:06.915Z] /go/pkg/mod/google.golang.org/[email protected]/server.go:1199 +0x15f2 [2019-11-13T14:04:06.915Z] google.golang.org/grpc.(*Server).handleStream() [2019-11-13T14:04:06.915Z] /go/pkg/mod/google.golang.org/[email protected]/server.go:1279 +0x12e5 [2019-11-13T14:04:06.915Z] google.golang.org/grpc.(*Server).serveStreams.func1.1() [2019-11-13T14:04:06.915Z] /go/pkg/mod/google.golang.org/[email protected]/server.go:710 +0xac ```
sre-bot
added
priority/normal
Minor change, requires approval from ≥1 primary reviewer
needs-update-release-note
This PR should be added into release notes. Remove this label once the release notes are updated
type/bug-fix
Bug fix
type/cherry-pick
This PR is just a cherry-pick (backport)
labels
Nov 14, 2019
/run-all-tests tidb=release-3.0 |
csuzhangxc
reviewed
Nov 14, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
@@ Coverage Diff @@
## release-1.0 #353 +/- ##
================================================
Coverage ? 57.4761%
================================================
Files ? 158
Lines ? 16031
Branches ? 0
================================================
Hits ? 9214
Misses ? 5914
Partials ? 903 |
@WangXiangUSTC PTAL |
IANTHEREAL
approved these changes
Nov 15, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
IANTHEREAL
added
status/LGT2
Two reviewers already commented LGTM, ready for merge
and removed
status/LGT1
One reviewer already commented LGTM
labels
Nov 15, 2019
ericsyh
added a commit
that referenced
this pull request
Dec 13, 2019
* bump to v1.0.3 * Update CHANGELOG.md Co-Authored-By: Xuecheng Zhang <[email protected]> * Update CHANGELOG.md Co-Authored-By: Xuecheng Zhang <[email protected]> * address comments * update the release notes * update #353
sre-bot
pushed a commit
to sre-bot/dm
that referenced
this pull request
Dec 13, 2019
glorv
pushed a commit
to glorv/dm
that referenced
this pull request
Dec 25, 2019
* bump to v1.0.3 * Update CHANGELOG.md Co-Authored-By: Xuecheng Zhang <[email protected]> * Update CHANGELOG.md Co-Authored-By: Xuecheng Zhang <[email protected]> * address comments * update the release notes * update pingcap#353
csuzhangxc
added
already-update-release-note
The release note is updated. Add this label once the release note is updated
and removed
needs-update-release-note
This PR should be added into release notes. Remove this label once the release notes are updated
labels
Mar 13, 2020
lichunzhu
pushed a commit
to lichunzhu/dm
that referenced
this pull request
Apr 6, 2020
* bump to v1.0.3 * Update CHANGELOG.md Co-Authored-By: Xuecheng Zhang <[email protected]> * Update CHANGELOG.md Co-Authored-By: Xuecheng Zhang <[email protected]> * address comments * update the release notes * update pingcap#353
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
already-update-release-note
The release note is updated. Add this label once the release note is updated
priority/normal
Minor change, requires approval from ≥1 primary reviewer
status/LGT2
Two reviewers already commented LGTM, ready for merge
type/bug-fix
Bug fix
type/cherry-pick
This PR is just a cherry-pick (backport)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cherry-pick #349 to release-1.0
What problem does this PR solve?
find a data race in import unit(loader)
What is changed and how it works?
doJob
groutine for each dump files, not for each worker