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
/
Copy patherrors_release.txt
527 lines (527 loc) · 81.2 KB
/
errors_release.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
ErrDBDriverError,[code=10001:class=database:scope=not-set:level=high], "Message: database driver error, Workaround: Please check the database connection and the database config in configuration file."
ErrDBBadConn,[code=10002:class=database:scope=not-set:level=high], "Message: database driver, Workaround: Please check the database connection, then use `pause-task` to pause the task and then use `resume-task` to resume the task."
ErrDBInvalidConn,[code=10003:class=database:scope=not-set:level=high], "Message: database driver, Workaround: Please check the database connection, then use `pause-task` to stop the task and then use `resume-task` to resume the task."
ErrDBUnExpect,[code=10004:class=database:scope=not-set:level=high], "Message: unexpect database error: %s"
ErrDBQueryFailed,[code=10005:class=database:scope=not-set:level=high], "Message: query statement failed: %s"
ErrDBExecuteFailed,[code=10006:class=database:scope=not-set:level=high], "Message: execute statement failed: %s"
ErrParseMydumperMeta,[code=11001:class=functional:scope=internal:level=high], "Message: parse mydumper metadata error: %s, metadata: %s"
ErrGetFileSize,[code=11002:class=functional:scope=internal:level=high], "Message: get file %s size"
ErrDropMultipleTables,[code=11003:class=functional:scope=internal:level=high], "Message: not allowed operation: drop multiple tables in one statement, Workaround: It is recommended to include only one DDL operation in a statement executed upstream. Please manually handle it using dmctl (skipping the DDL statement or replacing the DDL statement with a specified DDL statement). For details, see https://docs.pingcap.com/tidb-data-migration/stable/handle-failed-sql-statements"
ErrRenameMultipleTables,[code=11004:class=functional:scope=internal:level=high], "Message: not allowed operation: rename multiple tables in one statement, Workaround: It is recommended to include only one DDL operation in a statement executed upstream. Please manually handle it using dmctl (skipping the DDL statement or replacing the DDL statement with a specified DDL statement). For details, see https://docs.pingcap.com/tidb-data-migration/stable/handle-failed-sql-statements"
ErrAlterMultipleTables,[code=11005:class=functional:scope=internal:level=high], "Message: not allowed operation: alter multiple tables in one statement, Workaround: It is recommended to include only one DDL operation in a statement executed upstream. Please manually handle it using dmctl (skipping the DDL statement or replacing the DDL statement with a specified DDL statement). For details, see https://docs.pingcap.com/tidb-data-migration/stable/handle-failed-sql-statements"
ErrParseSQL,[code=11006:class=functional:scope=internal:level=high], "Message: parse statement: %s"
ErrUnknownTypeDDL,[code=11007:class=functional:scope=internal:level=high], "Message: unknown type ddl %+v, Workaround: Please manually handle it using dmctl (skipping the DDL statement or replacing the DDL statement with a specified DDL statement). For details, see https://docs.pingcap.com/tidb-data-migration/stable/handle-failed-sql-statements"
ErrRestoreASTNode,[code=11008:class=functional:scope=internal:level=high], "Message: restore ast node"
ErrParseGTID,[code=11009:class=functional:scope=internal:level=high], "Message: parse GTID %s"
ErrNotSupportedFlavor,[code=11010:class=functional:scope=internal:level=high], "Message: flavor %s not supported, Workaround: Please check `flavor` config in source configuration file."
ErrNotMySQLGTID,[code=11011:class=functional:scope=internal:level=high], "Message: %s is not mysql GTID set"
ErrNotMariaDBGTID,[code=11012:class=functional:scope=internal:level=high], "Message: %s is not mariadb GTID set"
ErrNotUUIDString,[code=11013:class=functional:scope=internal:level=high], "Message: %v is not UUID string"
ErrMariaDBDomainID,[code=11014:class=functional:scope=internal:level=high], "Message: %v is not uint32"
ErrInvalidServerID,[code=11015:class=functional:scope=internal:level=high], "Message: invalid server id %s"
ErrGetSQLModeFromStr,[code=11016:class=functional:scope=internal:level=high], "Message: get sql mode from string literal %s"
ErrVerifySQLOperateArgs,[code=11017:class=functional:scope=internal:level=low], "Workaround: Please make sure the args are correct."
ErrStatFileSize,[code=11018:class=functional:scope=internal:level=high], "Message: get file statfs"
ErrReaderAlreadyRunning,[code=11019:class=functional:scope=internal:level=high], "Message: binlog reader is already running"
ErrReaderAlreadyStarted,[code=11020:class=functional:scope=internal:level=high], "Message: stage %s, expect %s, already started"
ErrReaderStateCannotClose,[code=11021:class=functional:scope=internal:level=high], "Message: stage %s, expect %s, can not close"
ErrReaderShouldStartSync,[code=11022:class=functional:scope=internal:level=high], "Message: stage %s, expect %s"
ErrEmptyRelayDir,[code=11023:class=functional:scope=internal:level=high], "Message: empty relay dir, Workaround: Please check `relay-dir` config in task configuration file."
ErrReadDir,[code=11024:class=functional:scope=internal:level=high], "Message: read dir: %s"
ErrBaseFileNotFound,[code=11025:class=functional:scope=internal:level=high], "Message: base file %s in directory %s not found"
ErrBinFileCmpCondNotSupport,[code=11026:class=functional:scope=internal:level=high], "Message: cmp condition %v not supported"
ErrBinlogFileNotValid,[code=11027:class=functional:scope=internal:level=high], "Message: binlog file %s not valid"
ErrBinlogFilesNotFound,[code=11028:class=functional:scope=internal:level=high], "Message: binlog files in dir %s not found"
ErrGetRelayLogStat,[code=11029:class=functional:scope=internal:level=high], "Message: get stat for relay log %s"
ErrAddWatchForRelayLogDir,[code=11030:class=functional:scope=internal:level=high], "Message: add watch for relay log dir %s"
ErrWatcherStart,[code=11031:class=functional:scope=internal:level=high], "Message: watcher starts for relay log dir %s"
ErrWatcherChanClosed,[code=11032:class=functional:scope=internal:level=high], "Message: watcher's %s chan for relay log dir %s closed"
ErrWatcherChanRecvError,[code=11033:class=functional:scope=internal:level=high], "Message: watcher receives error, relay log dir %s"
ErrRelayLogFileSizeSmaller,[code=11034:class=functional:scope=internal:level=high], "Message: file size of relay log %s become smaller, Workaround: Please check the status of relay log and re-pull it. If you want to re-pull it, you should open relay.meta, set the binlog-name to the error pos name, set binlog-pos to 4, delete the stashed relay log and run `resume-relay` in dmctl."
ErrBinlogFileNotSpecified,[code=11035:class=functional:scope=internal:level=high], "Message: binlog file must be specified"
ErrNoRelayLogMatchPos,[code=11036:class=functional:scope=internal:level=high], "Message: no relay log files in dir %s match pos %s"
ErrFirstRelayLogNotMatchPos,[code=11037:class=functional:scope=internal:level=high], "Message: the first relay log %s not match the start pos %v"
ErrParserParseRelayLog,[code=11038:class=functional:scope=internal:level=high], "Message: parse relay log file %s"
ErrNoSubdirToSwitch,[code=11039:class=functional:scope=internal:level=high], "Message: parse for previous sub relay directory finished, but no next sub directory need to switch"
ErrNeedSyncAgain,[code=11040:class=functional:scope=internal:level=high], "Message: Last sync error or closed, try sync and get event again"
ErrSyncClosed,[code=11041:class=functional:scope=internal:level=high], "Message: Sync was closed"
ErrSchemaTableNameNotValid,[code=11042:class=functional:scope=internal:level=high], "Message: table name %s not valid"
ErrGenTableRouter,[code=11043:class=functional:scope=internal:level=high], "Message: generate table router, Workaround: Please check `routes` config in task configuration file."
ErrEncryptSecretKeyNotValid,[code=11044:class=functional:scope=internal:level=high], "Message: key size should be 16, 24 or 32, but input key's size is %d"
ErrEncryptGenCipher,[code=11045:class=functional:scope=internal:level=high], "Message: generate cipher"
ErrEncryptGenIV,[code=11046:class=functional:scope=internal:level=high], "Message: generate iv"
ErrCiphertextLenNotValid,[code=11047:class=functional:scope=internal:level=high], "Message: ciphertext's length should be greater than %d, but got %d not valid"
ErrCiphertextContextNotValid,[code=11048:class=functional:scope=internal:level=high], "Message: ciphertext's content not valid"
ErrInvalidBinlogPosStr,[code=11049:class=functional:scope=internal:level=high], "Message: invalid mysql position string: %s"
ErrEncCipherTextBase64Decode,[code=11050:class=functional:scope=internal:level=high], "Message: decode base64 encoded password %s"
ErrBinlogWriteBinaryData,[code=11051:class=functional:scope=internal:level=high]
ErrBinlogWriteDataToBuffer,[code=11052:class=functional:scope=internal:level=high]
ErrBinlogHeaderLengthNotValid,[code=11053:class=functional:scope=internal:level=high], "Message: header length should be %d, but got %d not valid"
ErrBinlogEventDecode,[code=11054:class=functional:scope=internal:level=high], "Message: decode % X"
ErrBinlogEmptyNextBinName,[code=11055:class=functional:scope=internal:level=high], "Message: empty next binlog name not valid"
ErrBinlogParseSID,[code=11056:class=functional:scope=internal:level=high]
ErrBinlogEmptyGTID,[code=11057:class=functional:scope=internal:level=high], "Message: empty GTID set not valid"
ErrBinlogGTIDSetNotValid,[code=11058:class=functional:scope=internal:level=high], "Message: GTID set %s with flavor %s not valid"
ErrBinlogGTIDMySQLNotValid,[code=11059:class=functional:scope=internal:level=high], "Message: GTID set string %s for MySQL not valid"
ErrBinlogGTIDMariaDBNotValid,[code=11060:class=functional:scope=internal:level=high], "Message: GTID set string %s for MariaDB not valid"
ErrBinlogMariaDBServerIDMismatch,[code=11061:class=functional:scope=internal:level=high], "Message: server_id mismatch, in GTID (%d), in event header/server_id (%d)"
ErrBinlogOnlyOneGTIDSupport,[code=11062:class=functional:scope=internal:level=high], "Message: only one GTID in set is supported, but got %d (%s)"
ErrBinlogOnlyOneIntervalInUUID,[code=11063:class=functional:scope=internal:level=high], "Message: only one Interval in UUIDSet is supported, but got %d (%s)"
ErrBinlogIntervalValueNotValid,[code=11064:class=functional:scope=internal:level=high], "Message: Interval's Stop should equal to Start+1, but got %+v (%s)"
ErrBinlogEmptyQuery,[code=11065:class=functional:scope=internal:level=high], "Message: empty query not valid"
ErrBinlogTableMapEvNotValid,[code=11066:class=functional:scope=internal:level=high], "Message: empty schema (% X) or table (% X) or column type (% X)"
ErrBinlogExpectFormatDescEv,[code=11067:class=functional:scope=internal:level=high], "Message: expect FormatDescriptionEvent, but got %+v"
ErrBinlogExpectTableMapEv,[code=11068:class=functional:scope=internal:level=high], "Message: expect TableMapEvent, but got %+v"
ErrBinlogExpectRowsEv,[code=11069:class=functional:scope=internal:level=high], "Message: expect event with type (%d), but got %+v"
ErrBinlogUnexpectedEv,[code=11070:class=functional:scope=internal:level=high], "Message: unexpected event %+v"
ErrBinlogParseSingleEv,[code=11071:class=functional:scope=internal:level=high]
ErrBinlogEventTypeNotValid,[code=11072:class=functional:scope=internal:level=high], "Message: event type %d not valid"
ErrBinlogEventNoRows,[code=11073:class=functional:scope=internal:level=high], "Message: no rows not valid"
ErrBinlogEventNoColumns,[code=11074:class=functional:scope=internal:level=high], "Message: no columns not valid"
ErrBinlogEventRowLengthNotEq,[code=11075:class=functional:scope=internal:level=high], "Message: length of row (%d) not equal to length of column-type (%d)"
ErrBinlogColumnTypeNotSupport,[code=11076:class=functional:scope=internal:level=high], "Message: column type %d in binlog not supported"
ErrBinlogGoMySQLTypeNotSupport,[code=11077:class=functional:scope=internal:level=high], "Message: go-mysql type %d in event generator not supported"
ErrBinlogColumnTypeMisMatch,[code=11078:class=functional:scope=internal:level=high], "Message: value %+v (type %v) with column type %v not valid"
ErrBinlogDummyEvSizeTooSmall,[code=11079:class=functional:scope=internal:level=high], "Message: required dummy event size (%d) is too small, the minimum supported size is %d"
ErrBinlogFlavorNotSupport,[code=11080:class=functional:scope=internal:level=high], "Message: flavor %s not supported"
ErrBinlogDMLEmptyData,[code=11081:class=functional:scope=internal:level=high], "Message: empty data not valid"
ErrBinlogLatestGTIDNotInPrev,[code=11082:class=functional:scope=internal:level=high], "Message: latest GTID %s is not one of the latest previousGTIDs %s not valid"
ErrBinlogReadFileByGTID,[code=11083:class=functional:scope=internal:level=high], "Message: read from file by GTID not supported"
ErrBinlogWriterNotStateNew,[code=11084:class=functional:scope=internal:level=high], "Message: stage %s, expect %s, already started"
ErrBinlogWriterStateCannotClose,[code=11085:class=functional:scope=internal:level=high], "Message: stage %s, expect %s, can not close"
ErrBinlogWriterNeedStart,[code=11086:class=functional:scope=internal:level=high], "Message: stage %s, expect %s"
ErrBinlogWriterOpenFile,[code=11087:class=functional:scope=internal:level=high], "Message: open file"
ErrBinlogWriterGetFileStat,[code=11088:class=functional:scope=internal:level=high], "Message: get stat for %s"
ErrBinlogWriterWriteDataLen,[code=11089:class=functional:scope=internal:level=high], "Message: data length %d"
ErrBinlogWriterFileNotOpened,[code=11090:class=functional:scope=internal:level=high], "Message: file %s not opened"
ErrBinlogWriterFileSync,[code=11091:class=functional:scope=internal:level=high], "Message: sync file"
ErrBinlogPrevGTIDEvNotValid,[code=11092:class=functional:scope=internal:level=high], "Message: the event should be a PreviousGTIDsEvent in go-mysql, but got %T"
ErrBinlogDecodeMySQLGTIDSet,[code=11093:class=functional:scope=internal:level=high], "Message: decode from % X"
ErrBinlogNeedMariaDBGTIDSet,[code=11094:class=functional:scope=internal:level=high], "Message: the event should be a MariadbGTIDListEvent, but got %T"
ErrBinlogParseMariaDBGTIDSet,[code=11095:class=functional:scope=internal:level=high], "Message: parse MariaDB GTID set"
ErrBinlogMariaDBAddGTIDSet,[code=11096:class=functional:scope=internal:level=high], "Message: add set %v to GTID set"
ErrTracingEventDataNotValid,[code=11097:class=functional:scope=internal:level=high], "Message: invalid event data for type: %s"
ErrTracingUploadData,[code=11098:class=functional:scope=internal:level=high], "Message: upload event"
ErrTracingEventTypeNotValid,[code=11099:class=functional:scope=internal:level=high], "Message: invalid event type %s, will not process"
ErrTracingGetTraceCode,[code=11100:class=functional:scope=internal:level=high], "Message: failed to get code information from runtime.Caller"
ErrTracingDataChecksum,[code=11101:class=functional:scope=internal:level=high], "Message: calc data checksum"
ErrTracingGetTSO,[code=11102:class=functional:scope=internal:level=high], "Message: get tso"
ErrBackoffArgsNotValid,[code=11103:class=functional:scope=internal:level=medium], "Message: backoff argument %s value %v not valid"
ErrInitLoggerFail,[code=11104:class=functional:scope=internal:level=medium], "Message: init logger failed"
ErrGTIDTruncateInvalid,[code=11105:class=functional:scope=internal:level=high], "Message: truncate GTID sets %v to %v not valid"
ErrRelayLogGivenPosTooBig,[code=11106:class=functional:scope=internal:level=high], "Message: the given relay log pos %s of meta config is too big, please check it again, Workaround: If the size of the corresponding binlog file has exceeded 4GB, please follow the solution in https://docs.pingcap.com/tidb-data-migration/stable/error-handling#the-relay-unit-throws-error-event-from--in--diff-from-passed-in-event--or-a-replication-task-is-interrupted-with-failing-to-get-or-parse-binlog-errors-like-get-binlog-error-error-1236-hy000-and-binlog-checksum-mismatch-data-may-be-corrupted-returned"
ErrElectionCampaignFail,[code=11107:class=functional:scope=internal:level=high], "Message: fail to campaign leader: %s"
ErrElectionGetLeaderIDFail,[code=11108:class=functional:scope=internal:level=medium], "Message: fail to get leader ID"
ErrBinlogInvalidFilenameWithUUIDSuffix,[code=11109:class=functional:scope=internal:level=high], "Message: invalid binlog filename with uuid suffix %s"
ErrDecodeEtcdKeyFail,[code=11110:class=functional:scope=internal:level=medium], "Message: fail to decode etcd key: %s"
ErrShardDDLOptimismTrySyncFail,[code=11111:class=functional:scope=internal:level=medium], "Message: fail to try sync the optimistic shard ddl lock %s: %s, Workaround: Please use `show-ddl-locks` command for more details."
ErrConnInvalidTLSConfig,[code=11112:class=functional:scope=internal:level=medium], "Message: invalid TLS config, Workaround: Please check the `ssl-ca`, `ssl-cert` and `ssl-key` config."
ErrConnRegistryTLSConfig,[code=11113:class=functional:scope=internal:level=medium], "Message: fail to registry TLS config"
ErrUpgradeVersionEtcdFail,[code=11114:class=functional:scope=internal:level=high], "Message: fail to operate DM cluster version in etcd, Workaround: Please use `list-member --master` to confirm whether the DM-master cluster is healthy"
ErrInvalidV1WorkerMetaPath,[code=11115:class=functional:scope=internal:level=medium], "Message: %s is an invalid v1.0.x DM-worker meta path, Workaround: Please check no `meta-dir` set for v1.0.x DM-worker."
ErrFailUpdateV1DBSchema,[code=11116:class=functional:scope=internal:level=medium], "Message: fail to upgrade v1.0.x DB schema, Workaround: Please confirm that you have not violated any restrictions in the upgrade documentation."
ErrBinlogStatusVarsParse,[code=11117:class=functional:scope=internal:level=medium], "Message: fail to parse binglog status_vars: %v, offset: %d"
ErrVerifyHandleErrorArgs,[code=11118:class=functional:scope=internal:level=low], "Workaround: Please make sure the args are correct."
ErrRewriteSQL,[code=11119:class=functional:scope=internal:level=high], "Message: failed to rewrite SQL for target DB, stmt: %+v, targetTableNames: %+v"
ErrNoUUIDDirMatchGTID,[code=11120:class=functional:scope=internal:level=high], "Message: no relay subdir match gtid %s"
ErrNoRelayPosMatchGTID,[code=11121:class=functional:scope=internal:level=high], "Message: no relay pos match gtid %s"
ErrReaderReachEndOfFile,[code=11122:class=functional:scope=internal:level=low]
ErrMetadataNoBinlogLoc,[code=11123:class=functional:scope=upstream:level=low], "Message: didn't found binlog location in dumped metadata file %s, Workaround: Please check log of dump unit, there maybe errors when read upstream binlog status"
ErrPreviousGTIDNotExist,[code=11124:class=functional:scope=internal:level=high], "Message: no previous gtid event from binlog %s"
ErrNoMasterStatus,[code=11125:class=functional:scope=upstream:level=medium], "Message: upstream returns an empty result for SHOW MASTER STATUS, Workaround: Please check the upstream settings like privileges, RDS settings to read data from SHOW MASTER STATUS."
ErrBinlogNotLogColumn,[code=11126:class=binlog-op:scope=upstream:level=high], "Message: upstream didn't log enough columns in binlog, Workaround: Please check if session `binlog_row_image` variable is not FULL, restart task to the location from where FULL binlog_row_image is used."
ErrConfigCheckItemNotSupport,[code=20001:class=config:scope=internal:level=medium], "Message: checking item %s is not supported\n%s, Workaround: Please check `ignore-checking-items` config in task configuration file, which can be set including `all`/`dump_privilege`/`replication_privilege`/`version`/`binlog_enable`/`binlog_format`/`binlog_row_image`/`table_schema`/`schema_of_shard_tables`/`auto_increment_ID`."
ErrConfigTomlTransform,[code=20002:class=config:scope=internal:level=medium], "Message: %s, Workaround: Please check the configuration file has correct TOML format."
ErrConfigYamlTransform,[code=20003:class=config:scope=internal:level=medium], "Message: %s, Workaround: Please check the configuration file has correct YAML format."
ErrConfigTaskNameEmpty,[code=20004:class=config:scope=internal:level=medium], "Message: task name should not be empty, Workaround: Please check the `name` config in task configuration file."
ErrConfigEmptySourceID,[code=20005:class=config:scope=internal:level=medium], "Message: empty source-id not valid, Workaround: Please check the `source-id` config in configuration file."
ErrConfigTooLongSourceID,[code=20006:class=config:scope=internal:level=medium], "Message: too long source-id not valid, Workaround: Please check the `source-id` config in configuration file. The max source id length is 32."
ErrConfigOnlineSchemeNotSupport,[code=20007:class=config:scope=internal:level=medium], "Message: online scheme %s not supported, Workaround: Please check the `online-ddl-scheme` config in task configuration file. Only `ghost` and `pt` are currently supported."
ErrConfigInvalidTimezone,[code=20008:class=config:scope=internal:level=medium], "Message: invalid timezone string: %s, Workaround: Please check the `timezone` config in task configuration file."
ErrConfigParseFlagSet,[code=20009:class=config:scope=internal:level=medium], "Message: parse subtask config flag set"
ErrConfigDecryptDBPassword,[code=20010:class=config:scope=internal:level=medium], "Message: decrypt DB password %s failed"
ErrConfigMetaInvalid,[code=20011:class=config:scope=internal:level=medium], "Message: must specify `binlog-name` without GTID enabled for the source or specify `binlog-gtid` with GTID enabled for the source, Workaround: Please check the `meta` config in task configuration file."
ErrConfigMySQLInstNotFound,[code=20012:class=config:scope=internal:level=medium], "Message: mysql instance config must specify, Workaround: Please check the `mysql-instances` config in task configuration file."
ErrConfigMySQLInstsAtLeastOne,[code=20013:class=config:scope=internal:level=medium], "Message: must specify at least one mysql-instances, Workaround: Please check the `mysql-instances` config in task configuration file."
ErrConfigMySQLInstSameSourceID,[code=20014:class=config:scope=internal:level=medium], "Message: mysql-instance (%d) and (%d) have same source-id (%s), Workaround: Please check the `mysql-instances` config in task configuration file."
ErrConfigMydumperCfgConflict,[code=20015:class=config:scope=internal:level=medium], "Message: mydumper-config-name and mydumper should only specify one, Workaround: Please check the `mydumper-config-name` and `mydumper` config in task configuration file."
ErrConfigLoaderCfgConflict,[code=20016:class=config:scope=internal:level=medium], "Message: loader-config-name and loader should only specify one, Workaround: Please check the `loader-config-name` and `loader` config in task configuration file."
ErrConfigSyncerCfgConflict,[code=20017:class=config:scope=internal:level=medium], "Message: syncer-config-name and syncer should only specify one, Workaround: Please check the `syncer-config-name` and `syncer` config in task configuration file."
ErrConfigReadCfgFromFile,[code=20018:class=config:scope=internal:level=medium], "Message: read config file %v"
ErrConfigNeedUniqueTaskName,[code=20019:class=config:scope=internal:level=medium], "Message: must specify a unique task name, Workaround: Please check the `name` config in task configuration file."
ErrConfigInvalidTaskMode,[code=20020:class=config:scope=internal:level=medium], "Message: please specify right task-mode, support `full`, `incremental`, `all`, Workaround: Please check the `task-mode` config in task configuration file."
ErrConfigNeedTargetDB,[code=20021:class=config:scope=internal:level=medium], "Message: must specify target-database, Workaround: Please check the `target-database` config in task configuration file."
ErrConfigMetadataNotSet,[code=20022:class=config:scope=internal:level=medium], "Message: mysql-instance(%d) must set meta for task-mode %s, Workaround: Please check the `meta` config in task configuration file."
ErrConfigRouteRuleNotFound,[code=20023:class=config:scope=internal:level=medium], "Message: mysql-instance(%d)'s route-rules %s not exist in routes, Workaround: Please check the `route-rules` config in task configuration file."
ErrConfigFilterRuleNotFound,[code=20024:class=config:scope=internal:level=medium], "Message: mysql-instance(%d)'s filter-rules %s not exist in filters, Workaround: Please check the `filter-rules` config in task configuration file."
ErrConfigColumnMappingNotFound,[code=20025:class=config:scope=internal:level=medium], "Message: mysql-instance(%d)'s column-mapping-rules %s not exist in column-mapping, Workaround: Please check the `column-mapping-rules` config in task configuration file."
ErrConfigBAListNotFound,[code=20026:class=config:scope=internal:level=medium], "Message: mysql-instance(%d)'s list %s not exist in block allow list, Workaround: Please check the `block-allow-list` config in task configuration file."
ErrConfigMydumperCfgNotFound,[code=20027:class=config:scope=internal:level=medium], "Message: mysql-instance(%d)'s mydumper config %s not exist in mydumpers, Workaround: Please check the `mydumper-config-name` config in task configuration file."
ErrConfigMydumperPathNotValid,[code=20028:class=config:scope=internal:level=medium], "Message: mysql-instance(%d)'s mydumper-path must specify a valid path to mydumper binary when task-mode is all or full, Workaround: Please check the `mydumper-path` config in task configuration file."
ErrConfigLoaderCfgNotFound,[code=20029:class=config:scope=internal:level=medium], "Message: mysql-instance(%d)'s loader config %s not exist in loaders, Workaround: Please check the `loader-config-name` config in task configuration file."
ErrConfigSyncerCfgNotFound,[code=20030:class=config:scope=internal:level=medium], "Message: mysql-instance(%d)'s syncer config %s not exist in syncer, Workaround: Please check the `syncer-config-name` config in task configuration file."
ErrConfigSourceIDNotFound,[code=20031:class=config:scope=internal:level=medium], "Message: source %s in deployment configuration not found, Workaround: Please use `operate-source create source-config-file-path` to add source."
ErrConfigDuplicateCfgItem,[code=20032:class=config:scope=internal:level=medium], "Message: the following mysql configs have duplicate items, please remove the duplicates:\n%s, Workaround: Please check the `mysql-instances` config in task configuration file."
ErrConfigShardModeNotSupport,[code=20033:class=config:scope=internal:level=medium], "Message: shard mode %s not supported, Workaround: Please check the `shard-mode` config in task configuration file, which can be set to `pessimistic`/`optimistic`."
ErrConfigMoreThanOne,[code=20034:class=config:scope=internal:level=high], "Message: found %d %s for %s which should <= 1"
ErrConfigEtcdParse,[code=20035:class=config:scope=internal:level=high], "Message: incapable config of %s from etcd"
ErrConfigMissingForBound,[code=20036:class=config:scope=internal:level=high], "Message: source bound %s doesn't have related source config in etcd"
ErrConfigBinlogEventFilter,[code=20037:class=config:scope=internal:level=high], "Message: generate binlog event filter, Workaround: Please check the `filters` config in source and task configuration files."
ErrConfigGlobalConfigsUnused,[code=20038:class=config:scope=internal:level=high], "Message: The configurations as following %v are set in global configuration but instances don't use them, Workaround: Please check the configuration files."
ErrConfigExprFilterManyExpr,[code=20039:class=config:scope=internal:level=high], "Message: expression filter can only specify one of (insert, update, delete) expressions, but %s has specified %v, Workaround: If you want to filter by A or B, please write two filters."
ErrConfigExprFilterNotFound,[code=20040:class=config:scope=internal:level=high], "Message: mysql-instance(%d)'s expression-filters %s not exist in expression-filter, Workaround: Please check the `expression-filters` config in task configuration file."
ErrConfigExprFilterWrongGrammar,[code=20041:class=config:scope=internal:level=high], "Message: expression-filter name(%s) SQL(%s) has wrong grammar: %v, Workaround: Please check the `expression-filters` config in task configuration file."
ErrConfigExprFilterEmptyName,[code=20042:class=config:scope=internal:level=high], "Message: expression-filter %s has empty %s, Workaround: Please check the `expression-filters` config in task configuration file."
ErrConfigCheckerMaxTooSmall,[code=20043:class=config:scope=internal:level=high], "Message: `backoff-max` value %v is less than `backoff-min` value %v, Workaround: Please increase `backoff-max` config in task configuration file."
ErrConfigGenBAList,[code=20044:class=config:scope=internal:level=high], "Message: generate block allow list error, Workaround: Please check the `block-allow-list` config in task configuration file."
ErrConfigGenTableRouter,[code=20045:class=config:scope=internal:level=high], "Message: generate table router error, Workaround: Please check the `routes` config in task configuration file."
ErrConfigGenColumnMapping,[code=20046:class=config:scope=internal:level=high], "Message: generate column mapping error, Workaround: Please check the `column-mappings` config in task configuration file."
ErrConfigInvalidChunkFileSize,[code=20047:class=config:scope=internal:level=high], "Message: invalid `chunk-filesize` %v, Workaround: Please check the `chunk-filesize` config in task configuration file."
ErrConfigOnlineDDLInvalidRegex,[code=20048:class=config:scope=internal:level=high], "Message: config '%s' regex pattern '%s' invalid, reason: %s, Workaround: Please check if params is correctly in the configuration file."
ErrConfigOnlineDDLMistakeRegex,[code=20049:class=config:scope=internal:level=high], "Message: online ddl sql '%s' invalid, table %s fail to match '%s' online ddl regex, Workaround: Please update your `shadow-table-rules` or `trash-table-rules` in the configuration file."
ErrBinlogExtractPosition,[code=22001:class=binlog-op:scope=internal:level=high]
ErrBinlogInvalidFilename,[code=22002:class=binlog-op:scope=internal:level=high], "Message: invalid binlog filename"
ErrBinlogParsePosFromStr,[code=22003:class=binlog-op:scope=internal:level=high]
ErrCheckpointInvalidTaskMode,[code=24001:class=checkpoint:scope=internal:level=medium], "Message: invalid task mode: %s"
ErrCheckpointSaveInvalidPos,[code=24002:class=checkpoint:scope=internal:level=high], "Message: save point %s is older than current location %s"
ErrCheckpointInvalidTableFile,[code=24003:class=checkpoint:scope=internal:level=medium], "Message: invalid db table sql file - %s"
ErrCheckpointDBNotExistInFile,[code=24004:class=checkpoint:scope=internal:level=medium], "Message: db (%s) not exist in data files, but in checkpoint"
ErrCheckpointTableNotExistInFile,[code=24005:class=checkpoint:scope=internal:level=medium], "Message: table (%s) not exist in db (%s) data files, but in checkpoint"
ErrCheckpointRestoreCountGreater,[code=24006:class=checkpoint:scope=internal:level=medium], "Message: restoring count greater than total count for table[%v]"
ErrTaskCheckSameTableName,[code=26001:class=task-check:scope=internal:level=medium], "Message: same table name in case-insensitive %v, Workaround: Please check `target-table` config in task configuration file."
ErrTaskCheckFailedOpenDB,[code=26002:class=task-check:scope=internal:level=high], "Message: failed to open DSN %s:***@%s:%d, Workaround: Please check the database config in configuration file."
ErrTaskCheckGenTableRouter,[code=26003:class=task-check:scope=internal:level=medium], "Message: generate table router error, Workaround: Please check the `routes` config in task configuration file."
ErrTaskCheckGenColumnMapping,[code=26004:class=task-check:scope=internal:level=medium], "Message: generate column mapping error, Workaround: Please check the `column-mappings` config in task configuration file."
ErrTaskCheckSyncConfigError,[code=26005:class=task-check:scope=internal:level=medium], "Message: %s: %v\n detail: %v"
ErrTaskCheckGenBAList,[code=26006:class=task-check:scope=internal:level=medium], "Message: generate block allow list error, Workaround: Please check the `block-allow-list` config in task configuration file."
ErrSourceCheckGTID,[code=26007:class=task-check:scope=internal:level=medium], "Message: %s has GTID_MODE = %s instead of ON, Workaround: Please check the `enable-gtid` config in source configuration file."
ErrRelayParseUUIDIndex,[code=28001:class=relay-event-lib:scope=internal:level=high], "Message: parse server-uuid.index"
ErrRelayParseUUIDSuffix,[code=28002:class=relay-event-lib:scope=internal:level=high], "Message: UUID (with suffix) %s not valid"
ErrRelayUUIDWithSuffixNotFound,[code=28003:class=relay-event-lib:scope=internal:level=high], "Message: no UUID (with suffix) matched %s found in %s, all UUIDs are %v"
ErrRelayGenFakeRotateEvent,[code=28004:class=relay-event-lib:scope=internal:level=high], "Message: generate fake rotate event"
ErrRelayNoValidRelaySubDir,[code=28005:class=relay-event-lib:scope=internal:level=high], "Message: there aren't any data under relay log directory %s., Workaround: Please check relay log using query-status."
ErrRelayUUIDSuffixNotValid,[code=30001:class=relay-unit:scope=internal:level=high], "Message: UUID %s suffix %d should be 1 larger than previous suffix %d"
ErrRelayUUIDSuffixLessThanPrev,[code=30002:class=relay-unit:scope=internal:level=high], "Message: previous UUID %s has suffix larger than %s"
ErrRelayLoadMetaData,[code=30003:class=relay-unit:scope=internal:level=high], "Message: load meta data"
ErrRelayBinlogNameNotValid,[code=30004:class=relay-unit:scope=internal:level=high], "Message: relay-binlog-name %s not valid, Workaround: Please check the `relay-binlog-name` config in source config file."
ErrRelayNoCurrentUUID,[code=30005:class=relay-unit:scope=internal:level=high], "Message: no current UUID set"
ErrRelayFlushLocalMeta,[code=30006:class=relay-unit:scope=internal:level=high], "Message: flush local meta"
ErrRelayUpdateIndexFile,[code=30007:class=relay-unit:scope=internal:level=high], "Message: update UUID index file %s"
ErrRelayLogDirpathEmpty,[code=30008:class=relay-unit:scope=internal:level=high], "Message: dirpath is empty, Workaround: Please check the `relay-dir` config in source config file."
ErrRelayReaderNotStateNew,[code=30009:class=relay-unit:scope=internal:level=high], "Message: stage %s, expect %s, already started"
ErrRelayReaderStateCannotClose,[code=30010:class=relay-unit:scope=internal:level=high], "Message: stage %s, expect %s, can not close"
ErrRelayReaderNeedStart,[code=30011:class=relay-unit:scope=internal:level=high], "Message: stage %s, expect %s"
ErrRelayTCPReaderStartSync,[code=30012:class=relay-unit:scope=upstream:level=high], "Message: start sync from position %s"
ErrRelayTCPReaderNilGTID,[code=30013:class=relay-unit:scope=internal:level=high], "Message: nil GTID set not valid"
ErrRelayTCPReaderStartSyncGTID,[code=30014:class=relay-unit:scope=upstream:level=high], "Message: start sync from GTID set %s"
ErrRelayTCPReaderGetEvent,[code=30015:class=relay-unit:scope=upstream:level=high], "Message: TCPReader get relay event with error"
ErrRelayWriterNotStateNew,[code=30016:class=relay-unit:scope=internal:level=high], "Message: stage %s, expect %s, already started"
ErrRelayWriterStateCannotClose,[code=30017:class=relay-unit:scope=internal:level=high], "Message: stage %s, expect %s, can not close"
ErrRelayWriterNeedStart,[code=30018:class=relay-unit:scope=internal:level=high], "Message: stage %s, expect %s"
ErrRelayWriterNotOpened,[code=30019:class=relay-unit:scope=internal:level=high], "Message: no underlying writer opened"
ErrRelayWriterExpectRotateEv,[code=30020:class=relay-unit:scope=internal:level=high], "Message: except RotateEvent, but got %+v"
ErrRelayWriterRotateEvWithNoWriter,[code=30021:class=relay-unit:scope=internal:level=high], "Message: non-fake RotateEvent %+v received, but no binlog file opened"
ErrRelayWriterStatusNotValid,[code=30022:class=relay-unit:scope=internal:level=high], "Message: invalid status type %T of the underlying writer"
ErrRelayWriterGetFileStat,[code=30023:class=relay-unit:scope=internal:level=high], "Message: get stat for %s"
ErrRelayWriterLatestPosGTFileSize,[code=30024:class=relay-unit:scope=internal:level=high], "Message: latest pos %d greater than file size %d, should not happen"
ErrRelayWriterFileOperate,[code=30025:class=relay-unit:scope=internal:level=high]
ErrRelayCheckBinlogFileHeaderExist,[code=30026:class=relay-unit:scope=internal:level=high]
ErrRelayCheckFormatDescEventExist,[code=30027:class=relay-unit:scope=internal:level=high]
ErrRelayCheckFormatDescEventParseEv,[code=30028:class=relay-unit:scope=internal:level=high], "Message: parse %s"
ErrRelayCheckIsDuplicateEvent,[code=30029:class=relay-unit:scope=internal:level=high]
ErrRelayUpdateGTID,[code=30030:class=relay-unit:scope=internal:level=high], "Message: update GTID set %v with GTID %s"
ErrRelayNeedPrevGTIDEvBeforeGTIDEv,[code=30031:class=relay-unit:scope=internal:level=high], "Message: should have a PreviousGTIDsEvent before the GTIDEvent %+v"
ErrRelayNeedMaGTIDListEvBeforeGTIDEv,[code=30032:class=relay-unit:scope=internal:level=high], "Message: should have a MariadbGTIDListEvent before the MariadbGTIDEvent %+v"
ErrRelayMkdir,[code=30033:class=relay-unit:scope=internal:level=high], "Message: relay mkdir"
ErrRelaySwitchMasterNeedGTID,[code=30034:class=relay-unit:scope=internal:level=high], "Message: can only switch relay's master server when GTID enabled, Workaround: Please check `enable-gtid` config in source configuration file."
ErrRelayThisStrategyIsPurging,[code=30035:class=relay-unit:scope=internal:level=high], "Message: this strategy is purging"
ErrRelayOtherStrategyIsPurging,[code=30036:class=relay-unit:scope=internal:level=high], "Message: %s is purging"
ErrRelayPurgeIsForbidden,[code=30037:class=relay-unit:scope=internal:level=high], "Message: relay log purge is forbidden temporarily, because %s, Workaround: Please try again later."
ErrRelayNoActiveRelayLog,[code=30038:class=relay-unit:scope=internal:level=high], "Message: no active relay log file found"
ErrRelayPurgeRequestNotValid,[code=30039:class=relay-unit:scope=internal:level=high], "Message: request %+v not valid"
ErrRelayTrimUUIDNotFound,[code=30040:class=relay-unit:scope=internal:level=high], "Message: UUID %s in UUIDs %v not found"
ErrRelayRemoveFileFail,[code=30041:class=relay-unit:scope=internal:level=high], "Message: remove relay log %s %s"
ErrRelayPurgeArgsNotValid,[code=30042:class=relay-unit:scope=internal:level=high], "Message: args (%T) %+v not valid"
ErrPreviousGTIDsNotValid,[code=30043:class=relay-unit:scope=internal:level=high], "Message: previousGTIDs %s not valid"
ErrRotateEventWithDifferentServerID,[code=30044:class=relay-unit:scope=internal:level=high], "Message: receive fake rotate event with different server_id, Workaround: Please use `resume-relay` command if upstream database has changed"
ErrDumpUnitRuntime,[code=32001:class=dump-unit:scope=internal:level=high], "Message: mydumper/dumpling runs with error, with output (may empty): %s"
ErrDumpUnitGenTableRouter,[code=32002:class=dump-unit:scope=internal:level=high], "Message: generate table router, Workaround: Please check `routes` config in task configuration file."
ErrDumpUnitGenBAList,[code=32003:class=dump-unit:scope=internal:level=high], "Message: generate block allow list, Workaround: Please check the `block-allow-list` config in task configuration file."
ErrDumpUnitGlobalLock,[code=32004:class=dump-unit:scope=internal:level=high], "Message: Couldn't acquire global lock, Workaround: Please check upstream privilege about FTWRL, or add `--no-locks` or `--consistency none` to extra-args of mydumpers"
ErrLoadUnitCreateSchemaFile,[code=34001:class=load-unit:scope=internal:level=medium], "Message: generate schema file, Workaround: Please check the `loaders` config in task configuration file."
ErrLoadUnitInvalidFileEnding,[code=34002:class=load-unit:scope=internal:level=high], "Message: corresponding ending of sql: ')' not found"
ErrLoadUnitParseQuoteValues,[code=34003:class=load-unit:scope=internal:level=high], "Message: parse quote values error"
ErrLoadUnitDoColumnMapping,[code=34004:class=load-unit:scope=internal:level=high], "Message: mapping row data %v for table %+v"
ErrLoadUnitReadSchemaFile,[code=34005:class=load-unit:scope=internal:level=high], "Message: read schema from sql file %s"
ErrLoadUnitParseStatement,[code=34006:class=load-unit:scope=internal:level=high], "Message: parse statement %s"
ErrLoadUnitNotCreateTable,[code=34007:class=load-unit:scope=internal:level=high], "Message: statement %s for %s/%s is not create table statement"
ErrLoadUnitDispatchSQLFromFile,[code=34008:class=load-unit:scope=internal:level=high], "Message: dispatch sql"
ErrLoadUnitInvalidInsertSQL,[code=34009:class=load-unit:scope=internal:level=high], "Message: invalid insert sql %s"
ErrLoadUnitGenTableRouter,[code=34010:class=load-unit:scope=internal:level=high], "Message: generate table router, Workaround: Please check `routes` config in task configuration file."
ErrLoadUnitGenColumnMapping,[code=34011:class=load-unit:scope=internal:level=high], "Message: generate column mapping, Workaround: Please check the `column-mapping-rules` config in task configuration file."
ErrLoadUnitNoDBFile,[code=34012:class=load-unit:scope=internal:level=high], "Message: invalid data sql file, cannot find db - %s"
ErrLoadUnitNoTableFile,[code=34013:class=load-unit:scope=internal:level=high], "Message: invalid data sql file, cannot find table - %s"
ErrLoadUnitDumpDirNotFound,[code=34014:class=load-unit:scope=internal:level=high], "Message: %s does not exist or it's not a dir"
ErrLoadUnitDuplicateTableFile,[code=34015:class=load-unit:scope=internal:level=high], "Message: invalid table schema file, duplicated item - %s"
ErrLoadUnitGenBAList,[code=34016:class=load-unit:scope=internal:level=high], "Message: generate block allow list, Workaround: Please check the `block-allow-list` config in task configuration file."
ErrLoadTaskWorkerNotMatch,[code=34017:class=functional:scope=internal:level=high], "Message: different worker in load stage, previous worker: %s, current worker: %s, Workaround: Please check if the previous worker is online."
ErrLoadTaskCheckPointNotMatch,[code=34018:class=functional:scope=internal:level=high], "Message: inconsistent checkpoints between loader and target database, Workaround: If you want to redo the whole task, please check that you have not forgotten to add -remove-meta flag for start-task command."
ErrLoadBackendNotSupport,[code=34019:class=functional:scope=internal:level=high], "Message: DM do not support backend %s , Workaround: If you do not understand the configure `tidb.backend` you can just delete it."
ErrSyncerUnitPanic,[code=36001:class=sync-unit:scope=internal:level=high], "Message: panic error: %v"
ErrSyncUnitInvalidTableName,[code=36002:class=sync-unit:scope=internal:level=high], "Message: extract table name for DML error: %s"
ErrSyncUnitTableNameQuery,[code=36003:class=sync-unit:scope=internal:level=high], "Message: table name parse error: %s"
ErrSyncUnitNotSupportedDML,[code=36004:class=sync-unit:scope=internal:level=high], "Message: DMLNode %v not supported"
ErrSyncUnitAddTableInSharding,[code=36005:class=sync-unit:scope=internal:level=medium], "Message: in sequence sharding, add table, activeDDL: %s, sharding sequence: %s not supported"
ErrSyncUnitDropSchemaTableInSharding,[code=36006:class=sync-unit:scope=internal:level=medium], "Message: in sequence sharding try drop sources %v not supported, activeDDL: %s, sharding sequence: %s"
ErrSyncUnitInvalidShardMeta,[code=36007:class=sync-unit:scope=internal:level=high], "Message: invalid sharding meta data"
ErrSyncUnitDDLWrongSequence,[code=36008:class=sync-unit:scope=internal:level=high], "Message: detect inconsistent DDL sequence from source %+v, right DDL sequence should be %+v, Workaround: Please use `show-ddl-locks` command for more details."
ErrSyncUnitDDLActiveIndexLarger,[code=36009:class=sync-unit:scope=internal:level=high], "Message: activeIdx %d larger than length of global DDLItems: %v"
ErrSyncUnitDupTableGroup,[code=36010:class=sync-unit:scope=internal:level=high], "Message: table group %s exists"
ErrSyncUnitShardingGroupNotFound,[code=36011:class=sync-unit:scope=internal:level=high], "Message: sharding group for %v not found"
ErrSyncUnitSafeModeSetCount,[code=36012:class=sync-unit:scope=internal:level=high]
ErrSyncUnitCausalityConflict,[code=36013:class=sync-unit:scope=internal:level=high], "Message: some conflicts in causality, must be resolved"
ErrSyncUnitDMLStatementFound,[code=36014:class=sync-unit:scope=internal:level=high], "Message: only support ROW format binlog, unexpected DML statement found in query event"
ErrSyncerUnitBinlogEventFilter,[code=36015:class=sync-unit:scope=internal:level=high]
ErrSyncerUnitInvalidReplicaEvent,[code=36016:class=sync-unit:scope=internal:level=high], "Message: invalid replication event type %v"
ErrSyncerUnitParseStmt,[code=36017:class=sync-unit:scope=internal:level=high]
ErrSyncerUnitUUIDNotLatest,[code=36018:class=sync-unit:scope=internal:level=high], "Message: UUID %s not the latest one in UUIDs %v"
ErrSyncerUnitDDLExecChanCloseOrBusy,[code=36019:class=sync-unit:scope=internal:level=high], "Message: the chan has closed or already in sending"
ErrSyncerUnitDDLChanDone,[code=36020:class=sync-unit:scope=internal:level=high], "Message: canceled from external"
ErrSyncerUnitDDLChanCanceled,[code=36021:class=sync-unit:scope=internal:level=high], "Message: canceled by Close or Renew"
ErrSyncerUnitDDLOnMultipleTable,[code=36022:class=sync-unit:scope=internal:level=high], "Message: ddl on multiple table: %s not supported, Workaround: It is recommended to include only one DDL operation in a statement executed upstream. Please manually handle it using dmctl (skipping the DDL statement or replacing the DDL statement with a specified DDL statement). For details, see https://docs.pingcap.com/tidb-data-migration/stable/handle-failed-sql-statements"
ErrSyncerUnitInjectDDLOnly,[code=36023:class=sync-unit:scope=internal:level=low], "Message: only support inject DDL for sharding group to be synced currently, but got %s"
ErrSyncerUnitInjectDDLWithoutSchema,[code=36024:class=sync-unit:scope=internal:level=low], "Message: injected DDL %s without schema name not valid"
ErrSyncerUnitNotSupportedOperate,[code=36025:class=sync-unit:scope=internal:level=medium], "Message: op %s not supported"
ErrSyncerUnitNilOperatorReq,[code=36026:class=sync-unit:scope=internal:level=medium], "Message: nil request not valid"
ErrSyncerUnitDMLColumnNotMatch,[code=36027:class=sync-unit:scope=internal:level=high], "Message: Column count doesn't match value count: %d (columns) vs %d (values), Workaround: Please check the log files to see if a related DDL has been skipped, and you could use `operate-schema` to get and set the table structure."
ErrSyncerUnitDMLOldNewValueMismatch,[code=36028:class=sync-unit:scope=internal:level=high], "Message: Old value count doesn't match new value count: %d (old) vs %d (new)"
ErrSyncerUnitDMLPruneColumnMismatch,[code=36029:class=sync-unit:scope=internal:level=high], "Message: prune DML columns and data mismatch in length: %d (columns) %d (data)"
ErrSyncerUnitGenBinlogEventFilter,[code=36030:class=sync-unit:scope=internal:level=high], "Message: generate binlog event filter, Workaround: Please check the `filters` config in source and task configuration files."
ErrSyncerUnitGenTableRouter,[code=36031:class=sync-unit:scope=internal:level=high], "Message: generate table router, Workaround: Please check `routes` config in task configuration file."
ErrSyncerUnitGenColumnMapping,[code=36032:class=sync-unit:scope=internal:level=high], "Message: generate column mapping, Workaround: Please check the `column-mappings` config in task configuration file."
ErrSyncerUnitDoColumnMapping,[code=36033:class=sync-unit:scope=internal:level=high], "Message: mapping row data %v for table %v"
ErrSyncerUnitCacheKeyNotFound,[code=36034:class=sync-unit:scope=internal:level=high], "Message: cache key %s in %s not found"
ErrSyncerUnitHeartbeatCheckConfig,[code=36035:class=sync-unit:scope=internal:level=medium], "Workaround: Please check `heartbeat` config in task configuration file."
ErrSyncerUnitHeartbeatRecordExists,[code=36036:class=sync-unit:scope=internal:level=medium], "Message: heartbeat slave record for task %s already exists"
ErrSyncerUnitHeartbeatRecordNotFound,[code=36037:class=sync-unit:scope=internal:level=medium], "Message: heartbeat slave record for task %s not found"
ErrSyncerUnitHeartbeatRecordNotValid,[code=36038:class=sync-unit:scope=internal:level=medium], "Message: heartbeat record %s not valid"
ErrSyncerUnitOnlineDDLInvalidMeta,[code=36039:class=sync-unit:scope=internal:level=high], "Message: online ddl meta invalid"
ErrSyncerUnitOnlineDDLSchemeNotSupport,[code=36040:class=sync-unit:scope=internal:level=high], "Message: online ddl scheme (%s) not supported, Workaround: Please check the `online-ddl-scheme` config in task configuration file. Only `ghost` and `pt` are currently supported."
ErrSyncerUnitOnlineDDLOnMultipleTable,[code=36041:class=sync-unit:scope=internal:level=high], "Message: online ddl changes on multiple table: %s not supported"
ErrSyncerUnitGhostApplyEmptyTable,[code=36042:class=sync-unit:scope=internal:level=high], "Message: empty tables not valid"
ErrSyncerUnitGhostRenameTableNotValid,[code=36043:class=sync-unit:scope=internal:level=high], "Message: tables should contain old and new table name"
ErrSyncerUnitGhostRenameToGhostTable,[code=36044:class=sync-unit:scope=internal:level=high], "Message: rename table to gh-ost temporary table %s not supported"
ErrSyncerUnitGhostRenameGhostTblToOther,[code=36045:class=sync-unit:scope=internal:level=high], "Message: rename gh-ost temporary table to other temporary table %s not supported"
ErrSyncerUnitGhostOnlineDDLOnGhostTbl,[code=36046:class=sync-unit:scope=internal:level=high], "Message: online ddl metadata for ghost temporary table `%s`.`%s` not found"
ErrSyncerUnitPTApplyEmptyTable,[code=36047:class=sync-unit:scope=internal:level=high], "Message: empty tables not valid"
ErrSyncerUnitPTRenameTableNotValid,[code=36048:class=sync-unit:scope=internal:level=high], "Message: tables should contain old and new table name"
ErrSyncerUnitPTRenameToPTTable,[code=36049:class=sync-unit:scope=internal:level=high], "Message: rename table to pt temporary table %s not supported"
ErrSyncerUnitPTRenamePTTblToOther,[code=36050:class=sync-unit:scope=internal:level=high], "Message: rename pt temporary table to other temporary table %s not supported"
ErrSyncerUnitPTOnlineDDLOnPTTbl,[code=36051:class=sync-unit:scope=internal:level=high], "Message: online ddl metadata for pt temporary table `%s`.`%s` not found, Workaround: This error may caused when the online DDL is filtered by binlog event filter, if so, please use `handle-error skip` sometimes to skip related DDLs."
ErrSyncerUnitRemoteSteamerWithGTID,[code=36052:class=sync-unit:scope=internal:level=high], "Message: open remote streamer with GTID mode not supported"
ErrSyncerUnitRemoteSteamerStartSync,[code=36053:class=sync-unit:scope=internal:level=high], "Message: start syncing binlog from remote streamer"
ErrSyncerUnitGetTableFromDB,[code=36054:class=sync-unit:scope=internal:level=high], "Message: invalid table `%s`.`%s`"
ErrSyncerUnitFirstEndPosNotFound,[code=36055:class=sync-unit:scope=internal:level=high], "Message: no valid End_log_pos of the first DDL exists for sharding group with source %s"
ErrSyncerUnitResolveCasualityFail,[code=36056:class=sync-unit:scope=internal:level=high], "Message: resolve karam error %v"
ErrSyncerUnitReopenStreamNotSupport,[code=36057:class=sync-unit:scope=internal:level=high], "Message: reopen %T not supported"
ErrSyncerUnitUpdateConfigInSharding,[code=36058:class=sync-unit:scope=internal:level=high], "Message: try update config when some tables' (%v) sharding DDL not synced not supported, Workaround: Please try again later."
ErrSyncerUnitExecWithNoBlockingDDL,[code=36059:class=sync-unit:scope=internal:level=high], "Message: process unit not waiting for sharding DDL to sync"
ErrSyncerUnitGenBAList,[code=36060:class=sync-unit:scope=internal:level=high], "Message: generate block allow list, Workaround: Please check the `block-allow-list` config in task configuration file."
ErrSyncerUnitHandleDDLFailed,[code=36061:class=sync-unit:scope=internal:level=high], "Message: fail to handle ddl job for %s"
ErrSyncerShardDDLConflict,[code=36062:class=sync-unit:scope=internal:level=high], "Message: fail to handle shard ddl %v in optimistic mode, because schema conflict detected, conflict error: %s, Workaround: Please use show-ddl-locks command for more details."
ErrSyncerFailpoint,[code=36063:class=sync-unit:scope=internal:level=low], "Message: failpoint specified error"
ErrSyncerReplaceEvent,[code=36064:class=sync-unit:scope=internal:level=high]
ErrSyncerOperatorNotExist,[code=36065:class=sync-unit:scope=internal:level=low], "Message: error operator not exist, position: %s"
ErrSyncerReplaceEventNotExist,[code=36066:class=sync-unit:scope=internal:level=high], "Message: replace event not exist, location: %s"
ErrSyncerParseDDL,[code=36067:class=sync-unit:scope=internal:level=high], "Message: parse DDL: %s, Workaround: Please confirm your DDL statement is correct and needed. For TiDB compatible DDL, see https://docs.pingcap.com/tidb/stable/mysql-compatibility#ddl. You can use `handle-error` command to skip or replace the DDL or add a binlog filter rule to ignore it if the DDL is not needed."
ErrSyncerUnsupportedStmt,[code=36068:class=sync-unit:scope=internal:level=high], "Message: `%s` statement not supported in %s mode"
ErrSyncerGetEvent,[code=36069:class=sync-unit:scope=upstream:level=high], "Message: get binlog event error: %v, Workaround: Please check if the binlog file could be parsed by `mysqlbinlog`."
ErrMasterSQLOpNilRequest,[code=38001:class=dm-master:scope=internal:level=medium], "Message: nil request not valid"
ErrMasterSQLOpNotSupport,[code=38002:class=dm-master:scope=internal:level=medium], "Message: op %s not supported"
ErrMasterSQLOpWithoutSharding,[code=38003:class=dm-master:scope=internal:level=medium], "Message: operate request without --sharding specified not valid"
ErrMasterGRPCCreateConn,[code=38004:class=dm-master:scope=internal:level=high], "Message: create grpc connection"
ErrMasterGRPCSendOnCloseConn,[code=38005:class=dm-master:scope=internal:level=high], "Message: send request on a closed client"
ErrMasterGRPCClientClose,[code=38006:class=dm-master:scope=internal:level=high], "Message: close rpc client"
ErrMasterGRPCInvalidReqType,[code=38007:class=dm-master:scope=internal:level=high], "Message: invalid request type: %v"
ErrMasterGRPCRequestError,[code=38008:class=dm-master:scope=internal:level=high], "Message: grpc request error"
ErrMasterDeployMapperVerify,[code=38009:class=dm-master:scope=internal:level=high], "Message: user should specify valid relation between source(mysql/mariadb) and dm-worker, config %+v not valid"
ErrMasterConfigParseFlagSet,[code=38010:class=dm-master:scope=internal:level=medium], "Message: parse config flag set"
ErrMasterConfigUnknownItem,[code=38011:class=dm-master:scope=internal:level=medium], "Message: master config contained unknown configuration options: %s"
ErrMasterConfigInvalidFlag,[code=38012:class=dm-master:scope=internal:level=medium], "Message: '%s' is an invalid flag"
ErrMasterConfigTomlTransform,[code=38013:class=dm-master:scope=internal:level=medium], "Message: config toml transform, Workaround: Please check the configuration file has correct TOML format."
ErrMasterConfigTimeoutParse,[code=38014:class=dm-master:scope=internal:level=medium], "Message: parse rpc timeout str"
ErrMasterConfigUpdateCfgFile,[code=38015:class=dm-master:scope=internal:level=high], "Message: update config file"
ErrMasterShardingDDLDiff,[code=38016:class=dm-master:scope=internal:level=high], "Message: sharding ddls in ddl lock %s is different with %s, Workaround: Please use show-ddl-locks command for more details."
ErrMasterStartService,[code=38017:class=dm-master:scope=internal:level=high], "Message: start server"
ErrMasterNoEmitToken,[code=38018:class=dm-master:scope=internal:level=high], "Message: fail to get emit opportunity for source %s"
ErrMasterLockNotFound,[code=38019:class=dm-master:scope=internal:level=high], "Message: lock with ID %s not found, Workaround: Please use show-ddl-locks command to see lock id."
ErrMasterLockIsResolving,[code=38020:class=dm-master:scope=internal:level=high], "Message: lock %s is resolving"
ErrMasterWorkerCliNotFound,[code=38021:class=dm-master:scope=internal:level=high], "Message: source %s relevant worker-client not found"
ErrMasterWorkerNotWaitLock,[code=38022:class=dm-master:scope=internal:level=high], "Message: worker %s not waiting for DDL lock %s"
ErrMasterHandleSQLReqFail,[code=38023:class=dm-master:scope=internal:level=high], "Message: request DDL lock %s owner %s handle SQLs request %s fail %s"
ErrMasterOwnerExecDDL,[code=38024:class=dm-master:scope=internal:level=high], "Message: owner %s ExecuteDDL fail"
ErrMasterPartWorkerExecDDLFail,[code=38025:class=dm-master:scope=internal:level=high], "Message: DDL lock %s owner ExecuteDDL successfully, so DDL lock removed. but some dm-workers ExecuteDDL fail, you should to handle dm-worker directly"
ErrMasterWorkerExistDDLLock,[code=38026:class=dm-master:scope=internal:level=high], "Message: worker %s exist ddl lock, Workaround: Please unlock ddl lock first."
ErrMasterGetWorkerCfgExtractor,[code=38027:class=dm-master:scope=internal:level=high]
ErrMasterTaskConfigExtractor,[code=38028:class=dm-master:scope=internal:level=high]
ErrMasterWorkerArgsExtractor,[code=38029:class=dm-master:scope=internal:level=high]
ErrMasterQueryWorkerConfig,[code=38030:class=dm-master:scope=internal:level=high]
ErrMasterOperNotFound,[code=38031:class=dm-master:scope=internal:level=high], "Message: operation %d of task %s on worker %s not found, Workaround: Please execute `query-status` to check status."
ErrMasterOperRespNotSuccess,[code=38032:class=dm-master:scope=internal:level=high], "Message: some error occurs in dm-worker: %s, Workaround: Please execute `query-status` to check status."
ErrMasterOperRequestTimeout,[code=38033:class=dm-master:scope=internal:level=high], "Message: request to dm-worker %s is timeout, but request may be successful, Workaround: Please execute `query-status` to check status."
ErrMasterHandleHTTPApis,[code=38034:class=dm-master:scope=internal:level=high], "Message: serve http apis to grpc"
ErrMasterHostPortNotValid,[code=38035:class=dm-master:scope=internal:level=high], "Message: host:port '%s' not valid, Workaround: Please check the `master-addr` config in master configuration file."
ErrMasterGetHostnameFail,[code=38036:class=dm-master:scope=internal:level=high], "Message: get hostname fail"
ErrMasterGenEmbedEtcdConfigFail,[code=38037:class=dm-master:scope=internal:level=high], "Message: fail to generate config item %s for embed etcd, Workaround: Please check configs in master configuration file."
ErrMasterStartEmbedEtcdFail,[code=38038:class=dm-master:scope=internal:level=high], "Message: fail to start embed etcd, Workaround: Please check all dm-master of `initial-cluster` in configuration file is up, and check the log for a detailed error."
ErrMasterParseURLFail,[code=38039:class=dm-master:scope=internal:level=high], "Message: fail to parse URL %s, Workaround: Please check configs in master configuration file."
ErrMasterJoinEmbedEtcdFail,[code=38040:class=dm-master:scope=internal:level=high], "Message: fail to join embed etcd: %s, Workaround: Please check configs in master configuration file."
ErrMasterInvalidOperateOp,[code=38041:class=dm-master:scope=internal:level=medium], "Message: invalid op %s on %s"
ErrMasterAdvertiseAddrNotValid,[code=38042:class=dm-master:scope=internal:level=high], "Message: advertise address %s not valid, Workaround: Please check the `advertise-addr` config in master configuration file."
ErrMasterRequestIsNotForwardToLeader,[code=38043:class=dm-master:scope=internal:level=high], "Message: master is not leader, and can't forward request to leader"
ErrMasterIsNotAsyncRequest,[code=38044:class=dm-master:scope=internal:level=medium], "Message: request %s is not an async one, needn't wait for ok"
ErrMasterFailToGetExpectResult,[code=38045:class=dm-master:scope=internal:level=medium], "Message: fail to get expected result"
ErrMasterPessimistNotStarted,[code=38046:class=dm-master:scope=internal:level=medium], "Message: the shardddl pessimist has not started"
ErrMasterOptimistNotStarted,[code=38047:class=dm-master:scope=internal:level=medium], "Message: the shardddl optimist has not started"
ErrMasterMasterNameNotExist,[code=38048:class=dm-master:scope=internal:level=low], "Message: dm-master with name %s not exists, Workaround: Please use list-member command to see masters."
ErrMasterInvalidOfflineType,[code=38049:class=dm-master:scope=internal:level=low], "Message: offline member type %s is invalid, Workaround: Please use master/worker."
ErrMasterAdvertisePeerURLsNotValid,[code=38050:class=dm-master:scope=internal:level=high], "Message: advertise peer urls %s not valid, Workaround: Please check the `advertise-peer-urls` config in master configuration file."
ErrMasterTLSConfigNotValid,[code=38051:class=dm-master:scope=internal:level=high], "Message: TLS config not valid, Workaround: Please check the `ssl-ca`, `ssl-cert` and `ssl-key` config in master configuration file."
ErrMasterBoundChanging,[code=38052:class=dm-master:scope=internal:level=low], "Message: source bound is changed too frequently, last old bound %s:, new bound %s, Workaround: Please try again later"
ErrMasterFailToImportFromV10x,[code=38053:class=dm-master:scope=internal:level=high], "Message: fail to import DM cluster from v1.0.x, Workaround: Please confirm that you have not violated any restrictions in the upgrade documentation."
ErrMasterInconsistentOptimisticDDLsAndInfo,[code=38054:class=dm-master:scope=internal:level=high], "Message: inconsistent count of optimistic ddls and table infos, ddls: %d, table info: %d"
ErrMasterOptimisticTableInfoBeforeNotExist,[code=38055:class=dm-master:scope=internal:level=high], "Message: table-info-before not exist in optimistic ddls: %v"
ErrWorkerParseFlagSet,[code=40001:class=dm-worker:scope=internal:level=medium], "Message: parse dm-worker config flag set"
ErrWorkerInvalidFlag,[code=40002:class=dm-worker:scope=internal:level=medium], "Message: '%s' is an invalid flag"
ErrWorkerDecodeConfigFromFile,[code=40003:class=dm-worker:scope=internal:level=medium], "Message: toml decode file, Workaround: Please check the configuration file has correct TOML format."
ErrWorkerUndecodedItemFromFile,[code=40004:class=dm-worker:scope=internal:level=medium], "Message: worker config contains unknown configuration options: %s, Workaround: Please check configs in worker configurtion file."
ErrWorkerNeedSourceID,[code=40005:class=dm-worker:scope=internal:level=medium], "Message: dm-worker should bind a non-empty source ID which represents a MySQL/MariaDB instance or a replica group. \n notice: if you use old version dm-ansible, please update to newest version."
ErrWorkerTooLongSourceID,[code=40006:class=dm-worker:scope=internal:level=medium], "Message: the length of source ID %s is more than max allowed value %d"
ErrWorkerRelayBinlogName,[code=40007:class=dm-worker:scope=internal:level=medium], "Message: relay-binlog-name %s not valid"
ErrWorkerWriteConfigFile,[code=40008:class=dm-worker:scope=internal:level=medium], "Message: write config to local file"
ErrWorkerLogInvalidHandler,[code=40009:class=dm-worker:scope=internal:level=high], "Message: handler is nil, please pass a leveldb.DB or leveldb.Transaction"
ErrWorkerLogPointerInvalid,[code=40010:class=dm-worker:scope=internal:level=high], "Message: not valid length data as pointer % X"
ErrWorkerLogFetchPointer,[code=40011:class=dm-worker:scope=internal:level=high], "Message: fetch handled pointer"
ErrWorkerLogUnmarshalPointer,[code=40012:class=dm-worker:scope=internal:level=high], "Message: unmarshal handle pointer % X"
ErrWorkerLogClearPointer,[code=40013:class=dm-worker:scope=internal:level=high], "Message: clear handled pointer"
ErrWorkerLogTaskKeyNotValid,[code=40014:class=dm-worker:scope=internal:level=high], "Message: not valid length data as task log key % X"
ErrWorkerLogUnmarshalTaskKey,[code=40015:class=dm-worker:scope=internal:level=high], "Message: unmarshal task log % X"
ErrWorkerLogFetchLogIter,[code=40016:class=dm-worker:scope=internal:level=high], "Message: fetch logs from meta with handle pointer %+v"
ErrWorkerLogGetTaskLog,[code=40017:class=dm-worker:scope=internal:level=high], "Message: get task log %d from leveldb"
ErrWorkerLogUnmarshalBinary,[code=40018:class=dm-worker:scope=internal:level=high], "Message: unmarshal task log binary % X"
ErrWorkerLogForwardPointer,[code=40019:class=dm-worker:scope=internal:level=high], "Message: forward handled pointer to %d"
ErrWorkerLogMarshalTask,[code=40020:class=dm-worker:scope=internal:level=high], "Message: marshal task log %+v"
ErrWorkerLogSaveTask,[code=40021:class=dm-worker:scope=internal:level=high], "Message: save task log %+v"
ErrWorkerLogDeleteKV,[code=40022:class=dm-worker:scope=internal:level=high], "Message: delete kv with prefix % X until % X"
ErrWorkerLogDeleteKVIter,[code=40023:class=dm-worker:scope=internal:level=high], "Message: iterate kv with prefix % X"
ErrWorkerLogUnmarshalTaskMeta,[code=40024:class=dm-worker:scope=internal:level=high], "Message: unmarshal task meta % X"
ErrWorkerLogFetchTaskFromMeta,[code=40025:class=dm-worker:scope=internal:level=high], "Message: fetch tasks from meta with prefix % X"
ErrWorkerLogVerifyTaskMeta,[code=40026:class=dm-worker:scope=internal:level=high]
ErrWorkerLogSaveTaskMeta,[code=40027:class=dm-worker:scope=internal:level=high], "Message: save task meta %s into kv db"
ErrWorkerLogGetTaskMeta,[code=40028:class=dm-worker:scope=internal:level=high], "Message: get task meta %s from kv db"
ErrWorkerLogDeleteTaskMeta,[code=40029:class=dm-worker:scope=internal:level=high], "Message: delete task meta %s from kv db"
ErrWorkerMetaTomlTransform,[code=40030:class=dm-worker:scope=internal:level=high], "Message: meta toml transform"
ErrWorkerMetaOldFileStat,[code=40031:class=dm-worker:scope=internal:level=high], "Message: get old file stat"
ErrWorkerMetaOldReadFile,[code=40032:class=dm-worker:scope=internal:level=high], "Message: read old metadata file %s"
ErrWorkerMetaEncodeTask,[code=40033:class=dm-worker:scope=internal:level=high], "Message: encode task %v"
ErrWorkerMetaRemoveOldDir,[code=40034:class=dm-worker:scope=internal:level=high], "Message: remove old meta dir"
ErrWorkerMetaTaskLogNotFound,[code=40035:class=dm-worker:scope=internal:level=high], "Message: any task operation log not found"
ErrWorkerMetaHandleTaskOrder,[code=40036:class=dm-worker:scope=internal:level=high], "Message: please handle task operation order by log ID, the log need to be handled is %+v, not %+v"
ErrWorkerMetaOpenTxn,[code=40037:class=dm-worker:scope=internal:level=high], "Message: open kv db txn"
ErrWorkerMetaCommitTxn,[code=40038:class=dm-worker:scope=internal:level=high], "Message: commit kv db txn"
ErrWorkerRelayStageNotValid,[code=40039:class=dm-worker:scope=internal:level=high], "Message: current stage is %s, %s required, relay op %s"
ErrWorkerRelayOperNotSupport,[code=40040:class=dm-worker:scope=internal:level=high], "Message: operation %s not supported"
ErrWorkerOpenKVDBFile,[code=40041:class=dm-worker:scope=internal:level=high], "Message: open kv db file"
ErrWorkerUpgradeCheckKVDir,[code=40042:class=dm-worker:scope=internal:level=high]
ErrWorkerMarshalVerBinary,[code=40043:class=dm-worker:scope=internal:level=high], "Message: marshal version %s to binary data"
ErrWorkerUnmarshalVerBinary,[code=40044:class=dm-worker:scope=internal:level=high], "Message: unmarshal version from data % X"
ErrWorkerGetVersionFromKV,[code=40045:class=dm-worker:scope=internal:level=high], "Message: load version with key %v from levelDB"
ErrWorkerSaveVersionToKV,[code=40046:class=dm-worker:scope=internal:level=high], "Message: save version %v into levelDB with key %v"
ErrWorkerVerAutoDowngrade,[code=40047:class=dm-worker:scope=internal:level=high], "Message: the previous version %s is newer than current %s, automatic downgrade is not supported now, please handle it manually"
ErrWorkerStartService,[code=40048:class=dm-worker:scope=internal:level=high], "Message: start server"
ErrWorkerAlreadyClosed,[code=40049:class=dm-worker:scope=internal:level=high], "Message: mysql source handler worker already closed"
ErrWorkerNotRunningStage,[code=40050:class=dm-worker:scope=internal:level=high], "Message: current stage is %s but not running, invalid"
ErrWorkerNotPausedStage,[code=40051:class=dm-worker:scope=internal:level=high], "Message: current stage is %s but not paused, invalid"
ErrWorkerUpdateTaskStage,[code=40052:class=dm-worker:scope=internal:level=high], "Message: can only update task on Paused stage, but current stage is %s, Workaround: Please use `pause-task` command to pause the task."
ErrWorkerMigrateStopRelay,[code=40053:class=dm-worker:scope=internal:level=high], "Message: relay unit has stopped, can not be migrated"
ErrWorkerSubTaskNotFound,[code=40054:class=dm-worker:scope=internal:level=high], "Message: sub task with name %s not found"
ErrWorkerSubTaskExists,[code=40055:class=dm-worker:scope=internal:level=high], "Message: sub task %s already exists"
ErrWorkerOperSyncUnitOnly,[code=40056:class=dm-worker:scope=internal:level=high], "Message: such operation is only available for syncer, but now syncer is not running. current unit is %s"
ErrWorkerRelayUnitStage,[code=40057:class=dm-worker:scope=internal:level=high], "Message: Worker's relay log unit in invalid stage: %s"
ErrWorkerNoSyncerRunning,[code=40058:class=dm-worker:scope=internal:level=high], "Message: there is a subtask does not run syncer"
ErrWorkerCannotUpdateSourceID,[code=40059:class=dm-worker:scope=internal:level=high], "Message: update source ID is not allowed"
ErrWorkerNoAvailUnits,[code=40060:class=dm-worker:scope=internal:level=high], "Message: subtask %s has no dm units for mode %s"
ErrWorkerDDLLockInfoNotFound,[code=40061:class=dm-worker:scope=internal:level=high], "Message: DDLLockInfo with ID %s not found, Workaround: Please use show-ddl-locks command to see lock id."
ErrWorkerDDLLockInfoExists,[code=40062:class=dm-worker:scope=internal:level=high], "Message: DDLLockInfo for task %s already exists"
ErrWorkerCacheDDLInfoExists,[code=40063:class=dm-worker:scope=internal:level=high], "Message: CacheDDLInfo for task %s already exists"
ErrWorkerExecSkipDDLConflict,[code=40064:class=dm-worker:scope=internal:level=high], "Message: execDDL and skipDDL can not specify both at the same time"
ErrWorkerExecDDLSyncerOnly,[code=40065:class=dm-worker:scope=internal:level=high], "Message: only syncer support ExecuteDDL, but current unit is %s"
ErrWorkerExecDDLTimeout,[code=40066:class=dm-worker:scope=internal:level=high], "Message: ExecuteDDL timeout (exceeding %s), Workaround: Please try use `query-status` to query whether the DDL is still blocking."
ErrWorkerWaitRelayCatchupTimeout,[code=40067:class=dm-worker:scope=internal:level=high], "Message: waiting for relay to catch up with loader is timeout (exceeding %s), loader: %s, relay: %s"
ErrWorkerRelayIsPurging,[code=40068:class=dm-worker:scope=internal:level=high], "Message: relay log purger is purging, cannot start sub task %s, Workaround: Please try again later."
ErrWorkerHostPortNotValid,[code=40069:class=dm-worker:scope=internal:level=high], "Message: host:port '%s' not valid, Workaround: Please check configs in worker configuration file."
ErrWorkerNoStart,[code=40070:class=dm-worker:scope=internal:level=high], "Message: no mysql source is being handled in the worker"
ErrWorkerAlreadyStart,[code=40071:class=dm-worker:scope=internal:level=high], "Message: mysql source worker %s has already started with source %s, but get a request with source %s, Workaround: Please try restart this DM-worker"
ErrWorkerSourceNotMatch,[code=40072:class=dm-worker:scope=internal:level=high], "Message: source of request does not match with source in worker"
ErrWorkerWaitRelayCatchupGTID,[code=40078:class=dm-worker:scope=internal:level=high], "Message: cannot compare gtid between loader and relay, loader gtid: %s, relay gtid: %s"
ErrWorkerFailToGetSubtaskConfigFromEtcd,[code=40073:class=dm-worker:scope=internal:level=medium], "Message: there is no relative subtask config for task %s in etcd"
ErrWorkerFailToGetSourceConfigFromEtcd,[code=40074:class=dm-worker:scope=internal:level=medium], "Message: there is no relative source config for source %s in etcd"
ErrWorkerDDLLockOpNotFound,[code=40075:class=dm-worker:scope=internal:level=high], "Message: missing shard DDL lock operation for shard DDL info (%s)"
ErrWorkerTLSConfigNotValid,[code=40076:class=dm-worker:scope=internal:level=high], "Message: TLS config not valid, Workaround: Please check the `ssl-ca`, `ssl-cert` and `ssl-key` config in worker configuration file."
ErrWorkerFailConnectMaster,[code=40077:class=dm-worker:scope=internal:level=high], "Message: cannot join with master endpoints: %v, error: %v, Workaround: Please check network connection of worker and check worker name is unique."
ErrWorkerRelayConfigChanging,[code=40079:class=dm-worker:scope=internal:level=low], "Message: relay config of worker %s is changed too frequently, last relay source %s:, new relay source %s, Workaround: Please try again later"
ErrTracerParseFlagSet,[code=42001:class=dm-tracer:scope=internal:level=medium], "Message: parse dm-tracer config flag set"
ErrTracerConfigTomlTransform,[code=42002:class=dm-tracer:scope=internal:level=medium], "Message: config toml transform, Workaround: Please check the configuration file has correct TOML format."
ErrTracerConfigInvalidFlag,[code=42003:class=dm-tracer:scope=internal:level=medium], "Message: '%s' is an invalid flag"
ErrTracerTraceEventNotFound,[code=42004:class=dm-tracer:scope=internal:level=medium], "Message: trace event %s not found"
ErrTracerTraceIDNotProvided,[code=42005:class=dm-tracer:scope=internal:level=medium], "Message: trace id not provided"
ErrTracerParamNotValid,[code=42006:class=dm-tracer:scope=internal:level=medium], "Message: param %s value %s not valid"
ErrTracerPostMethodOnly,[code=42007:class=dm-tracer:scope=internal:level=medium], "Message: post method only"
ErrTracerEventAssertionFail,[code=42008:class=dm-tracer:scope=internal:level=high], "Message: type %s event: %v not valid"
ErrTracerEventTypeNotValid,[code=42009:class=dm-tracer:scope=internal:level=high], "Message: trace event type %d not valid"
ErrTracerStartService,[code=42010:class=dm-tracer:scope=internal:level=high], "Message: start server"
ErrSchemaTrackerInvalidJSON,[code=44001:class=schema-tracker:scope=downstream:level=high], "Message: saved schema of `%s`.`%s` is not proper JSON"
ErrSchemaTrackerCannotCreateSchema,[code=44002:class=schema-tracker:scope=internal:level=high], "Message: failed to create database for `%s` in schema tracker"
ErrSchemaTrackerCannotCreateTable,[code=44003:class=schema-tracker:scope=internal:level=high], "Message: failed to create table for %v in schema tracker"
ErrSchemaTrackerCannotSerialize,[code=44004:class=schema-tracker:scope=internal:level=high], "Message: failed to serialize table info for `%s`.`%s`"
ErrSchemaTrackerCannotGetTable,[code=44005:class=schema-tracker:scope=internal:level=high], "Message: cannot get table info for %v from schema tracker"
ErrSchemaTrackerCannotExecDDL,[code=44006:class=schema-tracker:scope=internal:level=high], "Message: cannot track DDL: %s"
ErrSchemaTrackerCannotFetchDownstreamTable,[code=44007:class=schema-tracker:scope=downstream:level=medium], "Message: cannot fetch downstream table schema of %v to initialize upstream schema %v in schema tracker"
ErrSchemaTrackerCannotParseDownstreamTable,[code=44008:class=schema-tracker:scope=internal:level=high], "Message: cannot parse downstream table schema of %v to initialize upstream schema %v in schema tracker"
ErrSchemaTrackerInvalidCreateTableStmt,[code=44009:class=schema-tracker:scope=internal:level=medium], "Message: %s is not a valid `CREATE TABLE` statement"
ErrSchemaTrackerRestoreStmtFail,[code=44010:class=schema-tracker:scope=internal:level=medium], "Message: fail to restore the statement"
ErrSchemaTrackerCannotDropTable,[code=44011:class=schema-tracker:scope=internal:level=high], "Message: failed to drop table for %v in schema tracker"
ErrSchemaTrackerInit,[code=44012:class=schema-tracker:scope=internal:level=high], "Message: failed to create schema tracker"
ErrSchedulerNotStarted,[code=46001:class=scheduler:scope=internal:level=high], "Message: the scheduler has not started"
ErrSchedulerStarted,[code=46002:class=scheduler:scope=internal:level=medium], "Message: the scheduler has already started"
ErrSchedulerWorkerExist,[code=46003:class=scheduler:scope=internal:level=medium], "Message: dm-worker with name %s already exists"
ErrSchedulerWorkerNotExist,[code=46004:class=scheduler:scope=internal:level=medium], "Message: dm-worker with name %s not exists"
ErrSchedulerWorkerOnline,[code=46005:class=scheduler:scope=internal:level=medium], "Message: dm-worker with name %s is still online, Workaround: Please shut it down first."
ErrSchedulerWorkerInvalidTrans,[code=46006:class=scheduler:scope=internal:level=medium], "Message: invalid stage transformation for dm-worker %s, from %s to %s"
ErrSchedulerSourceCfgExist,[code=46007:class=scheduler:scope=internal:level=medium], "Message: source config with ID %s already exists"
ErrSchedulerSourceCfgNotExist,[code=46008:class=scheduler:scope=internal:level=medium], "Message: source config with ID %s not exists"
ErrSchedulerSourcesUnbound,[code=46009:class=dm-master:scope=internal:level=medium], "Message: sources %v have not bound"
ErrSchedulerSourceOpTaskExist,[code=46010:class=dm-master:scope=internal:level=medium], "Message: source with name %s need to operate has existing tasks %v, Workaround: Please `stop-task` first."
ErrSchedulerRelayStageInvalidUpdate,[code=46011:class=scheduler:scope=internal:level=medium], "Message: invalid new expectant relay stage %s"
ErrSchedulerRelayStageSourceNotExist,[code=46012:class=scheduler:scope=internal:level=medium], "Message: sources %v need to update expectant relay stage not exist"
ErrSchedulerMultiTask,[code=46013:class=scheduler:scope=internal:level=medium], "Message: the scheduler cannot perform multiple different tasks %v in one operation"
ErrSchedulerSubTaskExist,[code=46014:class=scheduler:scope=internal:level=medium], "Message: subtasks with name %s for sources %v already exist, Workaround: Please use `query-status` command to see tasks."
ErrSchedulerSubTaskStageInvalidUpdate,[code=46015:class=dm-master:scope=internal:level=medium], "Message: invalid new expectant subtask stage %s"
ErrSchedulerSubTaskOpTaskNotExist,[code=46016:class=dm-master:scope=internal:level=medium], "Message: subtasks with name %s need to be operate not exist, Workaround: Please use `query-status` command to see tasks."
ErrSchedulerSubTaskOpSourceNotExist,[code=46017:class=dm-master:scope=internal:level=medium], "Message: sources %v need to be operate not exist"
ErrSchedulerTaskNotExist,[code=46018:class=scheduler:scope=internal:level=medium], "Message: task with name %s not exist, Workaround: Please use `query-status` command to see tasks."
ErrSchedulerRequireNotRunning,[code=46019:class=scheduler:scope=internal:level=high], "Message: tasks %v on source %s should not be running, Workaround: Please use `pause-task [-s source ...] task` to pause them first."
ErrSchedulerRelayWorkersBusy,[code=46020:class=scheduler:scope=internal:level=high], "Message: these workers %s have started relay for sources %s respectively, Workaround: Please use `stop-relay` to stop them, or change your topology."
ErrSchedulerRelayWorkersWrongBound,[code=46021:class=scheduler:scope=internal:level=high], "Message: these workers %s have bound for another sources %s respectively, Workaround: Please `start-relay` on free or same source workers."
ErrSchedulerRelayWorkersWrongRelay,[code=46022:class=scheduler:scope=internal:level=high], "Message: these workers %s have started relay for another sources %s respectively, Workaround: Please correct sources in `stop-relay`."
ErrSchedulerSourceOpRelayExist,[code=46023:class=scheduler:scope=internal:level=high], "Message: source with name %s need to operate has existing relay workers %s, Workaround: Please `stop-relay` first."
ErrSchedulerLatchInUse,[code=46024:class=scheduler:scope=internal:level=low], "Message: when %s, resource %s is in use by other client, Workaround: Please try again later"
ErrSchedulerSourceCfgUpdate,[code=46025:class=scheduler:scope=internal:level=low], "Message: source can only update relay-log related parts for now"
ErrSchedulerWrongWorkerInput,[code=46026:class=scheduler:scope=internal:level=medium], "Message: require DM master to modify worker [%s] with source [%s], but currently the worker is bound to source [%s]"
ErrSchedulerBoundDiffWithStartedRelay,[code=46027:class=scheduler:scope=internal:level=medium], "Message: require DM worker [%s] to be bound to source [%s], but it has been started relay for source [%s], Workaround: If you intend to bind the source with worker, you can stop-relay for current source."
ErrCtlGRPCCreateConn,[code=48001:class=dmctl:scope=internal:level=high], "Message: can not create grpc connection, Workaround: Please check your network connection."
ErrCtlInvalidTLSCfg,[code=48002:class=dmctl:scope=internal:level=medium], "Message: invalid TLS config, Workaround: Please check the `ssl-ca`, `ssl-cert` and `ssl-key` config in command line."
ErrCtlLoadTLSCfg,[code=48003:class=dmctl:scope=internal:level=high], "Message: can not load tls config, Workaround: Please ensure that the tls certificate is accessible on the node currently running dmctl."
ErrOpenAPICommonError,[code=49001:class=openapi:scope=internal:level=high], "Message: some unexpected errors have occurred, please check the detailed error message"
ErrOpenAPITaskSourceNotFound,[code=49002:class=openapi:scope=internal:level=high], "Message: data source configuration not found, Workaround: Please check if the data source exists in the configuration file."
ErrNotSet,[code=50000:class=not-set:scope=not-set:level=high]