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
Copy file name to clipboardExpand all lines: _errno.py
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,9 @@ def __init__(self, code, msg):
31
31
def__str__(self):
32
32
returnself.msg
33
33
34
+
def__bool__(self):
35
+
returnFalse
36
+
34
37
35
38
classOBDErrorCodeTemplate(object):
36
39
@@ -142,6 +145,7 @@ class InitDirFailedErrorMessage(object):
142
145
WC_OBSERVER_SAME_DISK=OBDErrorCodeTemplate(1012, '({ip}) clog and data use the same disk ({disk})')
143
146
WC_FAIL_TO_RESTART_OR_RELOAD=OBDErrorCodeTemplate(1021, 'The components has been {action}, but encountered problems when reloading or restarting. Details:\n{detail}')
144
147
WC_FAIL_TO_RESTART_OR_RELOAD_AFTER_SCALE_OUT=OBDErrorCodeTemplate(1022, 'The cluster has been scaled out, but encountered problems when reloading or restarting. Details:\n{detail}')
148
+
WC_CHANGE_SYSTEM_PARAMETER_FAILED=OBDErrorCodeTemplate(1023, '({server}) failed to change system parameter: {key})')
145
149
146
150
# error code for observer
147
151
EC_OBSERVER_NOT_ENOUGH_MEMORY=OBDErrorCodeTemplate(2000, '({ip}) not enough memory. (Free: {free}, Need: {need})')
@@ -166,6 +170,8 @@ class InitDirFailedErrorMessage(object):
166
170
EC_OBSERVER_GET_MEMINFO_FAIL=OBDErrorCodeTemplate(2011, "{server}: fail to get memory info.\nPlease configure 'memory_limit' manually in configuration file")
167
171
EC_OBSERVER_FAIL_TO_START_OCS=OBDErrorCodeTemplate(2012, 'Failed to start {server} obshell')
EC_CPU_NOT_SUPPORT_AVX=OBDErrorCodeTemplate(2014, "{server}'s cpu not support avx")
174
+
EC_OBSERVER_DISABLE_AUTOSTART=OBDErrorCodeTemplate(2015, "{server}: Failed to modify the configuration of the automatic startup. Please check whether the current user has sudo permissions")
169
175
170
176
WC_OBSERVER_SYS_MEM_TOO_LARGE=OBDErrorCodeTemplate(2010, '({server}): system_memory too large. system_memory should be less than {factor} * memory_limit/memory_limit_percentage.')
171
177
@@ -256,6 +262,9 @@ class InitDirFailedErrorMessage(object):
256
262
EC_OBDIAG_OPTIONS_FORMAT_ERROR=OBDErrorCodeTemplate(6002, 'obdiag options {option} format error, please check the value : {value}')
257
263
EC_OBDIAG_FUCYION_FAILED=OBDErrorCodeTemplate(6003, 'Failed to execute obdiag function {fuction}')
EC_UNEXPECTED_EXCEPTION=OBDErrorCodeTemplate(9999, 'Unexpected exception: need to be posted on "https://ask.oceanbase.com", and we will help you resolve them.')
261
270
@@ -310,6 +319,6 @@ class InitDirFailedErrorMessage(object):
310
319
SUG_OCP_SERVER_EXIST_METADB_TENANT_NOT_ENOUGH=OBDErrorSuggestionTemplate('Please reduce the ocp meta tenant memory or ocp monitor tenant memory')
311
320
SUG_OCP_SERVER_NOT_EXIST_METADB_TENANT_NOT_ENOUGH=OBDErrorSuggestionTemplate('Please increase the meta db memory_limit and reduce the ocp meta tenant memory or ocp monitor tenant memory')
312
321
SUG_OB_SYS_USERNAME=OBDErrorSuggestionTemplate('Please delete the "ob_sys_username" parameter.')
313
-
SUG_OB_SYS_PASSWORD=OBDErrorSuggestionTemplate('''Please set the "ob_sys_password" for oblogproxy by configuring the "cdcro_password" parameter in the "oceanbase" or "oceanbase-ce" component.''')
322
+
SUG_OB_SYS_PASSWORD=OBDErrorSuggestionTemplate('''Please set the "ob_sys_password" for oblogproxy by configuring the "cdcro_password" parameter in the "oceanbase" or "oceanbase-ce" or "oceanbase-standalone" component.''')
314
323
SUG_OBAGENT_EDIT_HTTP_BASIC_AUTH_PASSWORD=OBDErrorSuggestionTemplate('Please edit the `http_basic_auth_password`, cannot contain characters other than uppercase letters, lowercase characters, digits, special characters:~^*{{}}[]_-+', fix_eval=[FixEval(FixEval.DEL, 'http_basic_auth_password')], auto_fix=True)
315
324
SUB_OBSERVER_UNKONE_SCENARIO=OBDErrorSuggestionTemplate('Please select a valid scenario from the options: {scenarios}')
0 commit comments