You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ErrKeyspaceGroupExists indicates target keyspace group already exists.
170
+
ErrKeyspaceGroupExists=errors.Normalize("keyspace group already exists", errors.RFCCodeText("PD:keyspace:ErrKeyspaceGroupExists"))
171
+
// ErrKeyspaceNotInKeyspaceGroup is used to indicate target keyspace is not in this keyspace group.
172
+
ErrKeyspaceNotInKeyspaceGroup=errors.Normalize("keyspace is not in this keyspace group", errors.RFCCodeText("PD:keyspace:ErrKeyspaceNotInKeyspaceGroup"))
173
+
// ErrKeyspaceNotInAnyKeyspaceGroup is used to indicate target keyspace is not in any keyspace group.
174
+
ErrKeyspaceNotInAnyKeyspaceGroup=errors.Normalize("keyspace is not in any keyspace group", errors.RFCCodeText("PD:keyspace:ErrKeyspaceNotInAnyKeyspaceGroup"))
175
+
// ErrNodeNotInKeyspaceGroup is used to indicate the tso node is not in this keyspace group.
176
+
ErrNodeNotInKeyspaceGroup=errors.Normalize("the tso node is not in this keyspace group", errors.RFCCodeText("PD:keyspace:ErrNodeNotInKeyspaceGroup"))
177
+
// ErrKeyspaceGroupNotEnoughReplicas is used to indicate not enough replicas in the keyspace group.
178
+
ErrKeyspaceGroupNotEnoughReplicas=errors.Normalize("not enough replicas in the keyspace group", errors.RFCCodeText("PD:keyspace:ErrKeyspaceGroupNotEnoughReplicas"))
179
+
// ErrKeyspaceGroupWithEmptyKeyspace is used to indicate keyspace group with empty keyspace.
180
+
ErrKeyspaceGroupWithEmptyKeyspace=errors.Normalize("keyspace group with empty keyspace", errors.RFCCodeText("PD:keyspace:ErrKeyspaceGroupWithEmptyKeyspace"))
181
+
// ErrModifyDefaultKeyspaceGroup is used to indicate that default keyspace group cannot be modified.
182
+
ErrModifyDefaultKeyspaceGroup=errors.Normalize("default keyspace group cannot be modified", errors.RFCCodeText("PD:keyspace:ErrModifyDefaultKeyspaceGroup"))
183
+
// ErrNoAvailableNode is used to indicate no available node in the keyspace group.
184
+
ErrNoAvailableNode=errors.Normalize("no available node", errors.RFCCodeText("PD:keyspace:ErrNoAvailableNode"))
185
+
// ErrExceedMaxEtcdTxnOps is used to indicate the number of etcd txn operations exceeds the limit.
186
+
ErrExceedMaxEtcdTxnOps=errors.Normalize("exceed max etcd txn operations", errors.RFCCodeText("PD:keyspace:ErrExceedMaxEtcdTxnOps"))
187
+
// ErrModifyDefaultKeyspace is used to indicate that default keyspace cannot be modified.
// ErrUnsupportedOperationInKeyspace is used to indicate this is an unsupported operation.
192
+
ErrUnsupportedOperationInKeyspace=errors.Normalize("it's a unsupported operation", errors.RFCCodeText("PD:keyspace:ErrUnsupportedOperationInKeyspace"))
193
+
// ErrKeyspaceGroupPrimaryNotFound is used to indicate primary of target keyspace group does not exist.
194
+
ErrKeyspaceGroupPrimaryNotFound=errors.Normalize("primary of keyspace group does not exist", errors.RFCCodeText("PD:keyspace:ErrKeyspaceGroupPrimaryNotFound"))
195
+
// ErrKeyspaceGroupNotExists is used to indicate target keyspace group does not exist.
196
+
ErrKeyspaceGroupNotExists=errors.Normalize("keyspace group %v does not exist", errors.RFCCodeText("PD:keyspace:ErrKeyspaceGroupNotExists"))
197
+
// ErrKeyspaceGroupInSplit is used to indicate target keyspace group is in split state.
198
+
ErrKeyspaceGroupInSplit=errors.Normalize("keyspace group %v is in split state", errors.RFCCodeText("PD:keyspace:ErrKeyspaceGroupInSplit"))
199
+
// ErrKeyspaceGroupNotInSplit is used to indicate target keyspace group is not in split state.
200
+
ErrKeyspaceGroupNotInSplit=errors.Normalize("keyspace group %v is not in split state", errors.RFCCodeText("PD:keyspace:ErrKeyspaceGroupNotInSplit"))
201
+
// ErrKeyspaceGroupInMerging is used to indicate target keyspace group is in merging state.
202
+
ErrKeyspaceGroupInMerging=errors.Normalize("keyspace group %v is in merging state", errors.RFCCodeText("PD:keyspace:ErrKeyspaceGroupInMerging"))
203
+
// ErrKeyspaceGroupNotInMerging is used to indicate target keyspace group is not in merging state.
204
+
ErrKeyspaceGroupNotInMerging=errors.Normalize("keyspace group %v is not in merging state", errors.RFCCodeText("PD:keyspace:ErrKeyspaceGroupNotInMerging"))
205
+
// errKeyspaceGroupNotInMerging is used to indicate target keyspace group is not in merging state.
145
206
)
146
207
147
208
// diagnostic errors
@@ -229,6 +290,16 @@ var (
229
290
ErrBytesToUint64=errors.Normalize("invalid data, must 8 bytes, but %d", errors.RFCCodeText("PD:typeutil:ErrBytesToUint64"))
230
291
)
231
292
293
+
// cgroup errors
294
+
var (
295
+
ErrNoCPUControllerDetected=errors.Normalize("no cpu controller detected", errors.RFCCodeText("PD:cgroup:ErrNoCPUControllerDetected"))
0 commit comments