forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.toml
3068 lines (2453 loc) · 51.6 KB
/
errors.toml
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
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# AUTOGENERATED BY github.com/pingcap/errors/errdoc-gen
# YOU CAN CHANGE THE 'description'/'workaround' FIELDS IF THEM ARE IMPROPER.
["BR:Backup:ErrBackupChecksumMismatch"]
error = '''
backup checksum mismatch
'''
["BR:Backup:ErrBackupGCSafepointExceeded"]
error = '''
backup GC safepoint exceeded
'''
["BR:Backup:ErrBackupInvalidRange"]
error = '''
backup range invalid
'''
["BR:Backup:ErrBackupNoLeader"]
error = '''
backup no leader
'''
["BR:Common:ErrEnvNotSpecified"]
error = '''
environment variable not found
'''
["BR:Common:ErrFailedToConnect"]
error = '''
failed to make gRPC channels
'''
["BR:Common:ErrInvalidArgument"]
error = '''
invalid argument
'''
["BR:Common:ErrInvalidMetaFile"]
error = '''
invalid metafile
'''
["BR:Common:ErrUndefinedDbOrTable"]
error = '''
undefined restore databases or tables
'''
["BR:Common:ErrUnknown"]
error = '''
internal error
'''
["BR:Common:ErrUnsupportedOperation"]
error = '''
the operation is not supported
'''
["BR:Common:ErrVersionMismatch"]
error = '''
version mismatch
'''
["BR:EBS:ErrRestoreInvalidPeer"]
error = '''
restore met a invalid peer
'''
["BR:EBS:ErrRestoreRegionWithoutPeer"]
error = '''
restore met a region without any peer
'''
["BR:EBS:ErrRestoreTotalKVMismatch"]
error = '''
restore total tikvs mismatch
'''
["BR:ExternalStorage:ErrStorageInvalidConfig"]
error = '''
invalid external storage config
'''
["BR:ExternalStorage:ErrStorageInvalidPermission"]
error = '''
external storage permission
'''
["BR:ExternalStorage:ErrStorageUnknown"]
error = '''
unknown external storage error
'''
["BR:KV:ErrKVClusterIDMismatch"]
error = '''
tikv cluster ID mismatch
'''
["BR:KV:ErrKVDownloadFailed"]
error = '''
download sst failed
'''
["BR:KV:ErrKVEpochNotMatch"]
error = '''
epoch not match
'''
["BR:KV:ErrKVIngestFailed"]
error = '''
ingest sst failed
'''
["BR:KV:ErrKVKeyNotInRegion"]
error = '''
key not in region
'''
["BR:KV:ErrKVNotLeader"]
error = '''
not leader
'''
["BR:KV:ErrKVRangeIsEmpty"]
error = '''
range is empty
'''
["BR:KV:ErrKVRewriteRuleNotFound"]
error = '''
rewrite rule not found
'''
["BR:KV:ErrKVStorage"]
error = '''
tikv storage occur I/O error
'''
["BR:KV:ErrKVUnknown"]
error = '''
unknown error occur on tikv
'''
["BR:KV:ErrNotTiKVStorage"]
error = '''
storage is not tikv
'''
["BR:PD:ErrPDBatchScanRegion"]
error = '''
batch scan region
'''
["BR:PD:ErrPDInvalidResponse"]
error = '''
PD invalid response
'''
["BR:PD:ErrPDLeaderNotFound"]
error = '''
PD leader not found
'''
["BR:PD:ErrPDUpdateFailed"]
error = '''
failed to update PD
'''
["BR:PiTR:ErrInvalidTaskInfo"]
error = '''
task info is invalid
'''
["BR:PiTR:ErrMalformedMetadata"]
error = '''
malformed metadata
'''
["BR:PiTR:ErrPiTRInvalidCDCLogFormat"]
error = '''
invalid cdc log format
'''
["BR:PiTR:ErrTaskNotFound"]
error = '''
task not found
'''
["BR:Restore:ErrDatabasesAlreadyExisted"]
error = '''
databases already existed in restored cluster
'''
["BR:Restore:ErrRestoreChecksumMismatch"]
error = '''
restore checksum mismatch
'''
["BR:Restore:ErrRestoreIncompatibleSys"]
error = '''
incompatible system table
'''
["BR:Restore:ErrRestoreInvalidBackup"]
error = '''
invalid backup
'''
["BR:Restore:ErrRestoreInvalidRange"]
error = '''
invalid restore range
'''
["BR:Restore:ErrRestoreInvalidRewrite"]
error = '''
invalid rewrite rule
'''
["BR:Restore:ErrRestoreModeMismatch"]
error = '''
restore mode mismatch
'''
["BR:Restore:ErrRestoreNoPeer"]
error = '''
region does not have peer
'''
["BR:Restore:ErrRestoreNotFreshCluster"]
error = '''
cluster is not fresh
'''
["BR:Restore:ErrRestoreRangeMismatch"]
error = '''
restore range mismatch
'''
["BR:Restore:ErrRestoreRejectStore"]
error = '''
failed to restore remove rejected store
'''
["BR:Restore:ErrRestoreResolvedTsConstrain"]
error = '''
resolved ts constrain violation
'''
["BR:Restore:ErrRestoreSchemaNotExists"]
error = '''
schema not exists
'''
["BR:Restore:ErrRestoreSplitFailed"]
error = '''
fail to split region
'''
["BR:Restore:ErrRestoreTableIDMismatch"]
error = '''
restore table ID mismatch
'''
["BR:Restore:ErrRestoreWriteAndIngest"]
error = '''
failed to write and ingest
'''
["BR:Restore:ErrUnsupportedSysTable"]
error = '''
the system table isn't supported for restoring yet
'''
["BR:Stream:ErrStreamLogTaskExist"]
error = '''
stream task already exists
'''
["Lighting:Restore:ErrChecksumMismatch"]
error = '''
checksum mismatched remote vs local => (checksum: %d vs %d) (total_kvs: %d vs %d) (total_bytes:%d vs %d)
'''
["Lightning:Checkpoint:ErrCheckpointNotFound"]
error = '''
checkpoint not found
'''
["Lightning:Checkpoint:ErrCleanCheckpoint"]
error = '''
clean checkpoint error
'''
["Lightning:Checkpoint:ErrInitCheckpoint"]
error = '''
init checkpoint error
'''
["Lightning:Checkpoint:ErrInvalidCheckpoint"]
error = '''
invalid checkpoint
'''
["Lightning:Checkpoint:ErrOpenCheckpoint"]
error = '''
open checkpoint error
'''
["Lightning:Checkpoint:ErrReadCheckpoint"]
error = '''
read checkpoint error
'''
["Lightning:Checkpoint:ErrUnknownCheckpointDriver"]
error = '''
unknown checkpoint driver '%s'
'''
["Lightning:Checkpoint:ErrUpdateCheckpoint"]
error = '''
update checkpoint error
'''
["Lightning:Common:ErrInvalidArgument"]
error = '''
invalid argument
'''
["Lightning:Common:ErrUnknown"]
error = '''
unknown error
'''
["Lightning:Common:ErrVersionMismatch"]
error = '''
version mismatch
'''
["Lightning:Config:ErrInvalidConfig"]
error = '''
invalid config
'''
["Lightning:Config:ErrInvalidSortedKVDir"]
error = '''
invalid sorted-kv-dir '%s' for local backend, please change the config or delete the path
'''
["Lightning:Config:ErrInvalidTLSConfig"]
error = '''
invalid tls config
'''
["Lightning:Config:ErrParseConfigFile"]
error = '''
cannot parse config file '%s'
'''
["Lightning:Config:ErrReadConfigFile"]
error = '''
cannot read config file '%s'
'''
["Lightning:DB:ErrDBConnect"]
error = '''
failed to connect database
'''
["Lightning:DB:ErrInitErrManager"]
error = '''
init error manager error
'''
["Lightning:DB:ErrInitMetaManager"]
error = '''
init meta manager error
'''
["Lightning:KV:EpochNotMatch"]
error = '''
epoch not match
'''
["Lightning:KV:ErrCheckKVVersion"]
error = '''
check tikv version error
'''
["Lightning:KV:ErrCheckMultiIngest"]
error = '''
check multi-ingest support error
'''
["Lightning:KV:ErrCreateKVClient"]
error = '''
create kv client error
'''
["Lightning:KV:ErrKVIngestFailed"]
error = '''
ingest tikv failed
'''
["Lightning:KV:ErrKVRaftProposalDropped"]
error = '''
raft proposal dropped
'''
["Lightning:KV:NotLeader"]
error = '''
not leader
'''
["Lightning:KV:ReadIndexNotReady"]
error = '''
read index not ready
'''
["Lightning:KV:RegionNotFound"]
error = '''
region not found
'''
["Lightning:KV:ServerIsBusy"]
error = '''
server is busy
'''
["Lightning:Loader:ErrInvalidSchemaFile"]
error = '''
invalid schema file
'''
["Lightning:Loader:ErrTableRoute"]
error = '''
table route error
'''
["Lightning:Loader:ErrTooManySourceFiles"]
error = '''
too many source files
'''
["Lightning:MetaMgr:ErrMetaMgrUnknown"]
error = '''
unknown error occur on meta manager
'''
["Lightning:PD:ErrCreatePDClient"]
error = '''
create pd client error
'''
["Lightning:PD:ErrPauseGC"]
error = '''
pause gc error
'''
["Lightning:PD:ErrUpdatePD"]
error = '''
update pd error
'''
["Lightning:PreCheck:ErrCheckCDCPiTR"]
error = '''
check TiCDC/PiTR task error
'''
["Lightning:PreCheck:ErrCheckCSVHeader"]
error = '''
check csv header error
'''
["Lightning:PreCheck:ErrCheckClusterRegion"]
error = '''
check tikv cluster region error
'''
["Lightning:PreCheck:ErrCheckDataSource"]
error = '''
check data source error
'''
["Lightning:PreCheck:ErrCheckLocalResource"]
error = '''
check local storage resource error
'''
["Lightning:PreCheck:ErrCheckTableEmpty"]
error = '''
check table empty error
'''
["Lightning:PreCheck:ErrCheckpointSchemaConflict"]
error = '''
checkpoint schema conflict
'''
["Lightning:PreCheck:ErrPreCheckFailed"]
error = '''
tidb-lightning pre-check failed: %s
'''
["Lightning:PreCheck:ErrSystemRequirementNotMet"]
error = '''
system requirement not met
'''
["Lightning:Restore:ErrAllocTableRowIDs"]
error = '''
allocate table row id error
'''
["Lightning:Restore:ErrCheckLocalFile"]
error = '''
cannot find local file for table: %s engineDir: %s
'''
["Lightning:Restore:ErrCreateSchema"]
error = '''
create schema failed, table: %s, stmt: %s
'''
["Lightning:Restore:ErrEncodeKV"]
error = '''
encode kv error in file %s at offset %d
'''
["Lightning:Restore:ErrFoundDuplicateKey"]
error = '''
found duplicate key '%s', value '%s'
'''
["Lightning:Restore:ErrInvalidMetaStatus"]
error = '''
invalid meta status: '%s'
'''
["Lightning:Restore:ErrInvalidSchemaStmt"]
error = '''
invalid schema statement: '%s'
'''
["Lightning:Restore:ErrOpenDuplicateDB"]
error = '''
open duplicate db error
'''
["Lightning:Restore:ErrResolveDuplicateRows"]
error = '''
resolve duplicate rows error on table '%s'
'''
["Lightning:Restore:ErrRestoreTable"]
error = '''
restore table %s failed
'''
["Lightning:Restore:ErrSchemaNotExists"]
error = '''
table `%s`.`%s` schema not found
'''
["Lightning:Restore:ErrTableIsChecksuming"]
error = '''
table '%s' is checksuming
'''
["Lightning:Restore:ErrUnknownBackend"]
error = '''
unknown backend %s
'''
["Lightning:Restore:ErrUnknownColumns"]
error = '''
unknown columns in header (%s) for table %s
'''
["Lightning:Storage:ErrEmptySourceDir"]
error = '''
data-source-dir '%s' doesn't exist or contains no files
'''
["Lightning:Storage:ErrInvalidPermission"]
error = '''
invalid permission
'''
["Lightning:Storage:ErrInvalidStorageConfig"]
error = '''
invalid data-source-dir
'''
["Lightning:Storage:ErrStorageUnknown"]
error = '''
unknown storage error
'''
["admin:8003"]
error = '''
TiDB admin check table failed.
'''
["admin:8223"]
error = '''
data inconsistency in table: %s, index: %s, handle: %s, index-values:%#v != record-values:%#v
'''
["autoid:1075"]
error = '''
Incorrect table definition; there can be only one auto column and it must be defined as a key
'''
["autoid:1467"]
error = '''
Failed to read auto-increment value from storage engine
'''
["autoid:8058"]
error = '''
Invalid allocator type
'''
["autoid:8059"]
error = '''
Failed to read auto-random value from storage engine
'''
["ddl:0"]
error = '''
TiFlash mode will take effect after at least one TiFlash replica is set for the table
'''
["ddl:1025"]
error = '''
Error on rename of '%-.210s' to '%-.210s' (errno: %d - %s)
'''
["ddl:1048"]
error = '''
Column '%-.192s' cannot be null
'''
["ddl:1054"]
error = '''
Unknown column '%-.192s' in '%-.192s'
'''
["ddl:1059"]
error = '''
Identifier name '%-.100s' is too long
'''
["ddl:1061"]
error = '''
Duplicate key name '%-.192s'
'''
["ddl:1067"]
error = '''
Invalid default value for '%-.192s'
'''
["ddl:1069"]
error = '''
Too many keys specified; max %d keys allowed
'''
["ddl:1071"]
error = '''
Specified key was too long (%d bytes); max key length is %d bytes
'''
["ddl:1072"]
error = '''
Key column '%-.192s' doesn't exist in table
'''
["ddl:1089"]
error = '''
Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
'''
["ddl:1090"]
error = '''
You can't delete all columns with ALTER TABLE; use DROP TABLE instead
'''
["ddl:1091"]
error = '''
Can't DROP '%-.192s'; check that column/key exists
'''
["ddl:1101"]
error = '''
BLOB/TEXT/JSON column '%-.192s' can't have a default value
'''
["ddl:1102"]
error = '''
Incorrect database name '%-.100s'
'''
["ddl:1103"]
error = '''
Incorrect table name '%-.100s'
'''
["ddl:1111"]
error = '''
Invalid use of group function
'''
["ddl:1113"]
error = '''
A table must have at least 1 column
'''
["ddl:1115"]
error = '''
Unknown character set: '%-.64s'
'''
["ddl:1117"]
error = '''
Too many columns
'''
["ddl:1138"]
error = '''
Invalid use of NULL value
'''
["ddl:1166"]
error = '''
Incorrect column name '%-.100s'
'''
["ddl:1167"]
error = '''
The used storage engine can't index column '%-.192s'
'''
["ddl:1170"]
error = '''
BLOB/TEXT column '%-.192s' used in key specification without a key length
'''
["ddl:1171"]
error = '''
All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead
'''
["ddl:1177"]
error = '''
Can't open table
'''
["ddl:1205"]
error = '''
Timeout waiting for data reorganization
'''
["ddl:1214"]
error = '''
The used table type doesn't support FULLTEXT indexes
'''
["ddl:1221"]
error = '''
Incorrect usage of %s and %s
'''
["ddl:1235"]
error = '''
This version of TiDB doesn't yet support '%s'
'''
["ddl:1246"]
error = '''
Converting column '%s' from %s to %s
'''
["ddl:1248"]
error = '''
Every derived table must have its own alias
'''
["ddl:1253"]
error = '''
COLLATION '%s' is not valid for CHARACTER SET '%s'
'''
["ddl:1264"]
error = '''
Out of range value for column '%s' at row %d
'''
["ddl:1265"]
error = '''
Data truncated for column '%s' at row %d
'''
["ddl:1273"]
error = '''
Unsupported collation when new collation is enabled: '%-.64s'
'''
["ddl:1280"]
error = '''
Incorrect index name '%-.100s'
'''
["ddl:1286"]
error = '''
Unknown storage engine '%s'
'''
["ddl:1292"]
error = '''
Truncated incorrect %-.64s value: '%-.128s'
'''
["ddl:1294"]
error = '''
Invalid ON UPDATE clause for '%-.192s' column
'''
["ddl:1302"]
error = '''
Conflicting declarations: 'CHARACTER SET %s' and 'CHARACTER SET %s'
'''
["ddl:1347"]
error = '''
'%-.192s.%-.192s' is not %s
'''
["ddl:1350"]
error = '''
View's SELECT contains a '%s' clause
'''
["ddl:1353"]
error = '''
In definition of view, derived table or common table expression, SELECT list and column names list have different column counts
'''
["ddl:1391"]
error = '''
Key part '%-.192s' length cannot be 0
'''
["ddl:1452"]
error = '''
Cannot add or update a child row: a foreign key constraint fails (%.192s)
'''
["ddl:1470"]
error = '''
String '%-.70s' is too long for %s (should be no longer than %d)
'''
["ddl:1481"]
error = '''
MAXVALUE can only be used in last partition definition
'''
["ddl:1486"]
error = '''
Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed
'''
["ddl:1488"]
error = '''
Field in list of fields for partition function not found in table
'''
["ddl:1491"]
error = '''
The %-.192s function returns the wrong type
'''
["ddl:1493"]
error = '''
VALUES LESS THAN value must be strictly increasing for each partition
'''
["ddl:1495"]
error = '''
Multiple definition of same constant in list partitioning
'''
["ddl:1499"]
error = '''
Too many partitions (including subpartitions) were defined
'''
["ddl:1503"]
error = '''
A %-.192s must include all columns in the table's partitioning function
'''
["ddl:1505"]
error = '''
Partition management on a not partitioned table is not possible
'''
["ddl:1507"]
error = '''
Error in list of partitions to %-.64s
'''
["ddl:1508"]
error = '''
Cannot remove all partitions, use DROP TABLE instead
'''
["ddl:1509"]
error = '''
COALESCE PARTITION can only be used on HASH/KEY partitions
'''
["ddl:1512"]
error = '''
%-.64s PARTITION can only be used on RANGE/LIST partitions
'''
["ddl:1517"]
error = '''
Duplicate partition name %-.192s
'''
["ddl:1553"]
error = '''
Cannot drop index '%-.192s': needed in a foreign key constraint
'''
["ddl:1562"]
error = '''
Cannot create temporary table with partitions
'''
["ddl:1563"]
error = '''
Partition constant is out of partition function domain
'''
["ddl:1564"]
error = '''
This partition function is not allowed
'''
["ddl:1567"]
error = '''
Incorrect partition name
'''
["ddl:1628"]
error = '''
Comment for table '%-.64s' is too long (max = %d)
'''
["ddl:1629"]
error = '''
Comment for field '%-.64s' is too long (max = %d)
'''
["ddl:1652"]
error = '''
Duplicate partition field name '%-.192s'
'''
["ddl:1654"]
error = '''
Partition column values of incorrect type
'''
["ddl:1659"]
error = '''
Field '%-.192s' is of a not allowed type for this type of partitioning
'''
["ddl:1674"]
error = '''
Statement is unsafe because it uses a system function that may return a different value on the slave
'''
["ddl:1688"]
error = '''
Comment for index '%-.64s' is too long (max = %d)
'''
["ddl:1697"]
error = '''
VALUES value for partition '%-.64s' must have type INT
'''
["ddl:1701"]
error = '''