forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.toml
2083 lines (1666 loc) · 33.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: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:ErrPiTRInvalidCDCLogFormat"]
error = '''
invalid cdc log format
'''
["BR:Restore:ErrRestoreChecksumMismatch"]
error = '''
restore checksum mismatch
'''
["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: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
'''
["admin:8003"]
error = '''
TiDB admin check table failed.
'''
["admin:8223"]
error = '''
index:%#v != record:%#v
'''
["admin:8224"]
error = '''
DDL Job:%v not found
'''
["admin:8225"]
error = '''
This job:%v is finished, so can't be cancelled
'''
["admin:8226"]
error = '''
This job:%v is almost finished, can't be cancelled now
'''
["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: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: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: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:1166"]
error = '''
Incorrect column name '%-.100s'
'''
["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:1214"]
error = '''
The used table type doesn't support FULLTEXT indexes
'''
["ddl:1221"]
error = '''
Incorrect usage of %s and %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: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:1517"]
error = '''
Duplicate partition name %-.192s
'''
["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: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:1697"]
error = '''
VALUES value for partition '%-.64s' must have type INT
'''
["ddl:1731"]
error = '''
Non matching attribute '%-.64s' between partition and table
'''
["ddl:1732"]
error = '''
Table to exchange with partition is partitioned: '%-.64s'
'''
["ddl:1736"]
error = '''
Tables have different definitions
'''
["ddl:1737"]
error = '''
Found a row that does not match the partition
'''
["ddl:1740"]
error = '''
Table to exchange with partition has foreign key references: '%-.64s'
'''
["ddl:1826"]
error = '''
Duplicate foreign key constraint name '%s'
'''
["ddl:1846"]
error = '''
%s is not supported. Reason: %s. Try %s.
'''
["ddl:3102"]
error = '''
Expression of generated column '%s' contains a disallowed function.
'''
["ddl:3106"]
error = '''
'%s' is not supported for generated columns.
'''
["ddl:3109"]
error = '''
Generated column '%s' cannot refer to auto-increment column.
'''
["ddl:3505"]
error = '''
Too long enumeration/set value for column %s.
'''
["ddl:3522"]
error = '''
A primary key index cannot be invisible
'''
["ddl:3754"]
error = '''
Expression index '%s' cannot refer to an auto-increment column
'''
["ddl:3756"]
error = '''
The primary key cannot be an expression index
'''
["ddl:3758"]
error = '''
Expression of expression index '%s' contains a disallowed function
'''
["ddl:3762"]
error = '''
Expression index on a column is not supported. Consider using a regular index instead
'''
["ddl:3764"]
error = '''
Expression of generated column '%s' cannot refer to a row value
'''
["ddl:3800"]
error = '''
Expression of expression index '%s' cannot refer to a row value
'''
["ddl:4135"]
error = '''
Sequence '%-.64s.%-.64s' has run out
'''
["ddl:4136"]
error = '''
Sequence '%-.64s.%-.64s' values are conflicting
'''
["ddl:4137"]
error = '''
Sequence '%-.64s.%-.64s' access error
'''
["ddl:4138"]
error = '''
'%-.64s.%-.64s' is not a SEQUENCE
'''
["ddl:4139"]
error = '''
Unknown SEQUENCE: '%-.300s'
'''
["ddl:8006"]
error = '''
`%s` is unsupported on temporary tables.
'''
["ddl:8200"]
error = '''
Unsupported partition by range columns
'''
["ddl:8210"]
error = '''
Invalid %!s(MISSING) state: %!v(MISSING)
'''
["ddl:8215"]
error = '''
Failed to repair table: %s
'''
["ddl:8216"]
error = '''
Invalid auto random: %s
'''
["ddl:8227"]
error = '''
Unsupported sequence table-option %s
'''
["ddl:8228"]
error = '''
Unsupported sequence default value for column type '%s'
'''
["ddl:8230"]
error = '''
Unsupported using sequence as default value in add column '%s'
'''
["ddl:8231"]
error = '''
%s is not supported
'''
["ddl:8232"]
error = '''
CREATE/ALTER table with union option is not supported
'''
["ddl:8233"]
error = '''
CREATE/ALTER table with insert method option is not supported
'''
["ddl:8236"]
error = '''
Placement policy didn't meet the constraint, reason: %s
'''
["ddl:8237"]
error = '''
Invalid attributes '%s': %s
'''
["ddl:8240"]
error = '''
Placement policy '%s' can't co-exist with direct placement options
'''
["ddl:8241"]
error = '''
Placement policy '%-.192s' is still in use
'''
["ddl:8242"]
error = '''
'%s' is unsupported on cache tables.
'''
["domain:8027"]
error = '''
Information schema is out of date: schema failed to update in 1 lease, please make sure TiDB can connect to TiKV
'''
["domain:8028"]
error = '''
Information schema is changed during the execution of the statement(for example, table definition may be updated by other DDL ran in parallel). If you see this error often, try increasing `tidb_max_delta_schema_count`. [try again later]
'''
["domain:9009"]
error = '''
Prometheus address is not set in PD and etcd
'''
["executor:1044"]
error = '''
Access denied for user '%-.48s'@'%-.255s' to database '%-.192s'
'''
["executor:1049"]
error = '''
Unknown database '%-.192s'
'''
["executor:1133"]
error = '''
Can't find any matching row in the user table
'''
["executor:1142"]
error = '''
%-.128s command denied to user '%-.48s'@'%-.255s' for table '%-.64s'
'''
["executor:1144"]
error = '''
Illegal GRANT/REVOKE command; please consult the manual to see which privileges can be used
'''
["executor:1213"]
error = '''
Deadlock found when trying to get lock; try restarting transaction
'''
["executor:1221"]
error = '''
Incorrect usage of %s and %s
'''
["executor:1235"]
error = '''
%-.32s is not supported. To enable this experimental feature, set '%-.32s' in the configuration file.
'''
["executor:1242"]
error = '''
Subquery returns more than 1 row
'''
["executor:1295"]
error = '''
This command is not supported in the prepared statement protocol yet
'''
["executor:1317"]
error = '''
Query execution was interrupted
'''
["executor:1347"]
error = '''
'%-.192s.%-.192s' is not %s
'''
["executor:1356"]
error = '''
View '%-.192s.%-.192s' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
'''
["executor:1390"]
error = '''
Prepared statement contains too many placeholders
'''
["executor:1396"]
error = '''
Operation %s failed for %.256s
'''
["executor:1410"]
error = '''
You are not allowed to create a user with GRANT
'''
["executor:1524"]
error = '''
Plugin '%-.192s' is not loaded
'''
["executor:1568"]
error = '''
Transaction characteristics can't be changed while a transaction is in progress
'''
["executor:1699"]
error = '''
SET PASSWORD has no significance for user '%-.48s'@'%-.255s' as authentication plugin does not support it.
'''
["executor:1827"]
error = '''
The password hash doesn't have the expected format. Check if the correct password algorithm is being used with the PASSWORD() function.
'''
["executor:3523"]
error = '''
Unknown authorization ID %.256s
'''
["executor:3619"]
error = '''
Illegal privilege level specified for %s
'''
["executor:3636"]
error = '''
Recursive query aborted after %d iterations. Try increasing @@cte_max_recursion_depth to a larger value
'''
["executor:3929"]
error = '''
Dynamic privilege '%s' is not registered with the server.
'''
["executor:8003"]
error = '''
TiDB admin check table failed.
'''
["executor:8114"]
error = '''
Unknown plan
'''
["executor:8115"]
error = '''
Can not prepare multiple statements
'''
["executor:8116"]
error = '''
Can not prepare DDL statements with parameters
'''
["executor:8117"]
error = '''
Result is empty
'''
["executor:8118"]
error = '''
Failed to build executor
'''
["executor:8119"]
error = '''
Batch insert failed, please clean the table and try again.
'''
["executor:8120"]
error = '''
Can not get start ts
'''
["executor:8124"]
error = '''
Backup failed: %s
'''
["executor:8125"]
error = '''
Restore failed: %s
'''
["executor:8126"]
error = '''
Import failed: %s
'''
["executor:8127"]
error = '''
Export failed: %s
'''
["executor:8133"]
error = '''
handle %#v, index:%#v != record:%#v
'''
["executor:8134"]
error = '''
col %s, handle %#v, index:%#v != record:%#v, compare err:%#v
'''
["executor:8212"]
error = '''
Failed to split region ranges: %s
'''
["expression:1139"]
error = '''
Got error '%-.64s' from regexp
'''
["expression:1235"]
error = '''
function %s has only noop implementation in tidb now, use tidb_enable_noop_functions to enable these functions
'''
["expression:1241"]
error = '''
Operand should contain %d column(s)
'''
["expression:1260"]
error = '''
Some rows were cut by GROUPCONCAT(%s)
'''
["expression:1267"]
error = '''
Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'
'''
["expression:1270"]
error = '''
Illegal mix of collations (%s,%s), (%s,%s), (%s,%s) for operation '%s'
'''
["expression:1271"]
error = '''
Illegal mix of collations for operation '%s'
'''
["expression:1365"]
error = '''
Division by 0
'''
["expression:1582"]
error = '''
Incorrect parameter count in the call to native function '%-.192s'
'''
["expression:3020"]
error = '''
Invalid argument for logarithm
'''
["expression:3064"]
error = '''
Incorrect type for argument %s in function %s.
'''
["expression:8128"]
error = '''
Invalid TABLESAMPLE: %s
'''
["json:3069"]
error = '''
Invalid JSON data provided to function %s: %s
'''
["json:3140"]
error = '''
Invalid JSON text: %-.192s
'''
["json:3143"]
error = '''