Comments (2)
reproduced
cluster: dm-worker1(172.16.6.1), dm-worker2(172.16.6.2), dm-worker3(172.16.6.3)
operate-source create source1
operate-source create source2
transfer-source: dm-worker1(free), dm-worker2(source1), dm-worker3(source2)
start-relay for source1 and source2
start-task for source1 and source2
upgrade from v2.0.6 to v2.0.7
worker2 error
{
"result": true,
"msg": "no sub task started",
"sourceStatus": {
"source": "mysql-replica-02",
"worker": "dm-172.16.6.2-6262",
"result": {
"isCanceled": false,
"errors": [
{
"ErrCode": 40071,
"ErrClass": "dm-worker",
"ErrScope": "internal",
"ErrLevel": "high",
"Message": "mysql source worker dm-172.16.6.2-6262 has already started with source mysql-replica-01, but get a request with source mysql-replica-02",
"RawCause": "",
"Workaround": "Please try restart this DM-worker"
}
],
"detail": null
},
"relayStatus": {
"masterBinlog": "(mysql-bin.003385, 292551706)",
"masterBinlogGtid": "eca09ad9-1cf8-11ec-9b6e-0242ac110002:1-4444683058",
"relaySubDir": "eca09ad9-1cf8-11ec-9b6e-0242ac110002.000001",
"relayBinlog": "(mysql-bin.003385, 292551706)",
"relayBinlogGtid": "eca09ad9-1cf8-11ec-9b6e-0242ac110002:1-4444683058",
"relayCatchUpMaster": true,
"stage": "Running",
"result": null
}
},
"subTaskStatus": [
]
}
root cause
dm-worker1(free), dm-worker2(source1), dm-worker3(source2)
tiup upgrade will restart worker in lexicographic order
restart dm-worker1: dm-worker1(free), dm-worker2(source1), dm-worker3(source2)
restart dm-worker2: dm-worker1(source1), dm-worker2(free), dm-worker3(source2)
restart dm-worker3: dm-worker1(source1), dm-worker2(source2), dm-worker3(free)
now dm-worker2 start-relay for source1 but bounded to source2, but we did not handle this situation well.
from dm.
as we discussed, since a "relay bound" worker should not be treat as a free worker, I plan to add "relay" WorkerStage to (offline, free, bound). WorkerStage is not persisted so there should be no compatibility problem.
from dm.
Related Issues (20)
- feature: pause/resume/stop (sub)tasks related to a upstream source in batch mode HOT 1
- remove useless config `disable-detect`
- The event can be logged when using binlog filter HOT 3
- follow the package move of parser
- Worker should not offline when enable relay failed
- Add command to start-relay and stop-relay for all sources
- speed up operate-source show HOT 1
- DM failed to start an incremental task HOT 3
- relay: refactor dm-worker relay logic
- Add reader interface to relay module to unify local/grpc entry
- dm-worker lost online-ddl configuration after upgrade HOT 4
- tiup dm and ssl HOT 3
- handle the upgrading problem of removing `disable-detect`
- make `start-relay` easier to use HOT 5
- dm mariadb binlog parse timestamp panic HOT 4
- handle-error skip throw error HOT 5
- DM is unavailable when create view on source mysql HOT 1
- why dm must save table structure info in cache? HOT 2
- restoring count greater than total count HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dm.