From ccd9f8e66a5c5e87c5f1a04504667db5c51c5554 Mon Sep 17 00:00:00 2001 From: "wanhong.wwh" Date: Thu, 11 Jan 2024 03:43:47 +0000 Subject: [PATCH] Optimize ob_errno.def to facilitate better placeholder --- deps/oblib/src/lib/ob_errno.h | 14 +- .../inner_table/ob_inner_table_schema_def.py | 4 +- src/share/ob_errno.cpp | 184 ++++++------ src/share/ob_errno.def | 266 +++++++++++++++--- src/share/ob_errno.h | 28 +- 5 files changed, 346 insertions(+), 150 deletions(-) diff --git a/deps/oblib/src/lib/ob_errno.h b/deps/oblib/src/lib/ob_errno.h index 0afdeeaace..2ebcc7b863 100644 --- a/deps/oblib/src/lib/ob_errno.h +++ b/deps/oblib/src/lib/ob_errno.h @@ -398,15 +398,15 @@ constexpr int OB_BACKUP_PWRITE_CONTENT_NOT_MATCH = -9084; constexpr int OB_CLOUD_OBJECT_NOT_APPENDABLE = -9098; constexpr int OB_RESTORE_TENANT_FAILED = -9099; constexpr int OB_S3_ERROR = -9105; +constexpr int OB_TENANT_SNAPSHOT_NOT_EXIST = -9106; +constexpr int OB_TENANT_SNAPSHOT_EXIST = -9107; +constexpr int OB_TENANT_SNAPSHOT_TIMEOUT = -9108; +constexpr int OB_CLONE_TENANT_TIMEOUT = -9109; +constexpr int OB_ERR_CLONE_TENANT = -9110; +constexpr int OB_ERR_TENANT_SNAPSHOT = -9111; +constexpr int OB_TENANT_SNAPSHOT_LOCK_CONFLICT = -9112; constexpr int OB_ERR_XML_PARSE = -9549; constexpr int OB_ERR_XSLT_PARSE = -9574; -constexpr int OB_TENANT_SNAPSHOT_NOT_EXIST = -12000; -constexpr int OB_TENANT_SNAPSHOT_EXIST = -12001; -constexpr int OB_TENANT_SNAPSHOT_TIMEOUT = -12002; -constexpr int OB_CLONE_TENANT_TIMEOUT = -12003; -constexpr int OB_ERR_CLONE_TENANT = -12004; -constexpr int OB_ERR_TENANT_SNAPSHOT = -12005; -constexpr int OB_TENANT_SNAPSHOT_LOCK_CONFLICT = -12006; constexpr int OB_MAX_RAISE_APPLICATION_ERROR = -20000; constexpr int OB_MIN_RAISE_APPLICATION_ERROR = -20999; diff --git a/src/share/inner_table/ob_inner_table_schema_def.py b/src/share/inner_table/ob_inner_table_schema_def.py index 6a55ee06e3..bf5f868b4a 100644 --- a/src/share/inner_table/ob_inner_table_schema_def.py +++ b/src/share/inner_table/ob_inner_table_schema_def.py @@ -12459,7 +12459,7 @@ def_table_schema(**gen_iterate_private_virtual_table_def( table_name = '__all_virtual_column_checksum_error_info', keywords = all_def_keywords['__all_column_checksum_error_info'])) -# 13331: __all_virtual_kvcache_handle_leak_info # abandoned in 4.0 +# 12331: __all_virtual_kvcache_handle_leak_info # 12332: abandoned # 12333: abandoned @@ -14158,7 +14158,7 @@ def_table_schema(**no_direct_access(gen_oracle_mapping_real_virtual_table_def('1 # 本区域定义的Oracle表名比较复杂,一般都采用gen_xxx_table_def()方式定义,占位建议采用基表表名占位 # - 示例:def_table_schema(**no_direct_access(gen_oracle_mapping_virtual_table_def('15009', all_def_keywords['__all_virtual_sql_audit']))) # * 基表表名占位:# 15009: __all_virtual_sql_audit -# * 真实表名占位:# 15009: ALL_VIRTUAL_SQL_AUDIT_ORA +# * 真实表名占位:# 15009: ALL_VIRTUAL_SQL_AUDIT ################################################################################ # End of Oracle Virtual Table(15000,20000] ################################################################################ diff --git a/src/share/ob_errno.cpp b/src/share/ob_errno.cpp index bac2bf7253..afc44343dc 100644 --- a/src/share/ob_errno.cpp +++ b/src/share/ob_errno.cpp @@ -22917,6 +22917,90 @@ static const _error _error_OB_S3_ERROR = { .oracle_str_error = "ORA-00600: internal error code, arguments: -9105, S3 error", .oracle_str_user_error = "ORA-00600: internal error code, arguments: -9105, S3 error" }; +static const _error _error_OB_TENANT_SNAPSHOT_NOT_EXIST = { + .error_name = "OB_TENANT_SNAPSHOT_NOT_EXIST", + .error_cause = "Internal Error", + .error_solution = "Contact OceanBase Support", + .mysql_errno = -1, + .sqlstate = "HY000", + .str_error = "Tenant snapshot does not exist", + .str_user_error = "Tenant snapshot \'%.*s\' does not exist", + .oracle_errno = 600, + .oracle_str_error = "ORA-00600: internal error code, arguments: -9106, Tenant snapshot does not exist", + .oracle_str_user_error = "ORA-00600: internal error code, arguments: -9106, Tenant snapshot \'%.*s\' does not exist" +}; +static const _error _error_OB_TENANT_SNAPSHOT_EXIST = { + .error_name = "OB_TENANT_SNAPSHOT_EXIST", + .error_cause = "Internal Error", + .error_solution = "Contact OceanBase Support", + .mysql_errno = -1, + .sqlstate = "HY000", + .str_error = "Tenant snapshot already exist", + .str_user_error = "Tenant snapshot \'%.*s\' already exist", + .oracle_errno = 600, + .oracle_str_error = "ORA-00600: internal error code, arguments: -9107, Tenant snapshot already exist", + .oracle_str_user_error = "ORA-00600: internal error code, arguments: -9107, Tenant snapshot \'%.*s\' already exist" +}; +static const _error _error_OB_TENANT_SNAPSHOT_TIMEOUT = { + .error_name = "OB_TENANT_SNAPSHOT_TIMEOUT", + .error_cause = "Internal Error", + .error_solution = "Contact OceanBase Support", + .mysql_errno = -1, + .sqlstate = "HY000", + .str_error = "Tenant snapshot task timeout", + .str_user_error = "Tenant snapshot task timeout. %.*s", + .oracle_errno = 600, + .oracle_str_error = "ORA-00600: internal error code, arguments: -9108, Tenant snapshot task timeout", + .oracle_str_user_error = "ORA-00600: internal error code, arguments: -9108, Tenant snapshot task timeout. %.*s" +}; +static const _error _error_OB_CLONE_TENANT_TIMEOUT = { + .error_name = "OB_CLONE_TENANT_TIMEOUT", + .error_cause = "Internal Error", + .error_solution = "Contact OceanBase Support", + .mysql_errno = -1, + .sqlstate = "HY000", + .str_error = "Clone tenant timeout", + .str_user_error = "Clone tenant timeout. %.*s", + .oracle_errno = 600, + .oracle_str_error = "ORA-00600: internal error code, arguments: -9109, Clone tenant timeout", + .oracle_str_user_error = "ORA-00600: internal error code, arguments: -9109, Clone tenant timeout. %.*s" +}; +static const _error _error_OB_ERR_CLONE_TENANT = { + .error_name = "OB_ERR_CLONE_TENANT", + .error_cause = "Internal Error", + .error_solution = "Contact OceanBase Support", + .mysql_errno = -1, + .sqlstate = "HY000", + .str_error = "Tenant clone job failed", + .str_user_error = "%.*s", + .oracle_errno = 600, + .oracle_str_error = "ORA-00600: internal error code, arguments: -9110, Tenant clone job failed", + .oracle_str_user_error = "ORA-00600: internal error code, arguments: -9110, %.*s" +}; +static const _error _error_OB_ERR_TENANT_SNAPSHOT = { + .error_name = "OB_ERR_TENANT_SNAPSHOT", + .error_cause = "Internal Error", + .error_solution = "Contact OceanBase Support", + .mysql_errno = -1, + .sqlstate = "HY000", + .str_error = "Tenant snapshot task failed", + .str_user_error = "%.*s", + .oracle_errno = 600, + .oracle_str_error = "ORA-00600: internal error code, arguments: -9111, Tenant snapshot task failed", + .oracle_str_user_error = "ORA-00600: internal error code, arguments: -9111, %.*s" +}; +static const _error _error_OB_TENANT_SNAPSHOT_LOCK_CONFLICT = { + .error_name = "OB_TENANT_SNAPSHOT_LOCK_CONFLICT", + .error_cause = "Internal Error", + .error_solution = "Contact OceanBase Support", + .mysql_errno = -1, + .sqlstate = "HY000", + .str_error = "Tenant snapshot lock conflict", + .str_user_error = "%s", + .oracle_errno = 600, + .oracle_str_error = "ORA-00600: internal error code, arguments: -9112, Tenant snapshot lock conflict", + .oracle_str_user_error = "ORA-00600: internal error code, arguments: -9112, %s" +}; static const _error _error_OB_ERR_RESIZE_FILE_TO_SMALLER = { .error_name = "OB_ERR_RESIZE_FILE_TO_SMALLER", .error_cause = "Internal Error", @@ -26469,90 +26553,6 @@ static const _error _error_OB_ERR_FT_COLUMN_NOT_INDEXED = { .oracle_str_error = "ORA-00600: internal error code, arguments: -11014, Can't find FULLTEXT index matching the column list", .oracle_str_user_error = "ORA-00600: internal error code, arguments: -11014, Can't find FULLTEXT index matching the column list" }; -static const _error _error_OB_TENANT_SNAPSHOT_NOT_EXIST = { - .error_name = "OB_TENANT_SNAPSHOT_NOT_EXIST", - .error_cause = "Internal Error", - .error_solution = "Contact OceanBase Support", - .mysql_errno = -1, - .sqlstate = "HY000", - .str_error = "Tenant snapshot does not exist", - .str_user_error = "Tenant snapshot \'%.*s\' does not exist", - .oracle_errno = 600, - .oracle_str_error = "ORA-00600: internal error code, arguments: -12000, Tenant snapshot does not exist", - .oracle_str_user_error = "ORA-00600: internal error code, arguments: -12000, Tenant snapshot \'%.*s\' does not exist" -}; -static const _error _error_OB_TENANT_SNAPSHOT_EXIST = { - .error_name = "OB_TENANT_SNAPSHOT_EXIST", - .error_cause = "Internal Error", - .error_solution = "Contact OceanBase Support", - .mysql_errno = -1, - .sqlstate = "HY000", - .str_error = "Tenant snapshot already exist", - .str_user_error = "Tenant snapshot \'%.*s\' already exist", - .oracle_errno = 600, - .oracle_str_error = "ORA-00600: internal error code, arguments: -12001, Tenant snapshot already exist", - .oracle_str_user_error = "ORA-00600: internal error code, arguments: -12001, Tenant snapshot \'%.*s\' already exist" -}; -static const _error _error_OB_TENANT_SNAPSHOT_TIMEOUT = { - .error_name = "OB_TENANT_SNAPSHOT_TIMEOUT", - .error_cause = "Internal Error", - .error_solution = "Contact OceanBase Support", - .mysql_errno = -1, - .sqlstate = "HY000", - .str_error = "Tenant snapshot task timeout", - .str_user_error = "Tenant snapshot task timeout. %.*s", - .oracle_errno = 600, - .oracle_str_error = "ORA-00600: internal error code, arguments: -12002, Tenant snapshot task timeout", - .oracle_str_user_error = "ORA-00600: internal error code, arguments: -12002, Tenant snapshot task timeout. %.*s" -}; -static const _error _error_OB_CLONE_TENANT_TIMEOUT = { - .error_name = "OB_CLONE_TENANT_TIMEOUT", - .error_cause = "Internal Error", - .error_solution = "Contact OceanBase Support", - .mysql_errno = -1, - .sqlstate = "HY000", - .str_error = "Clone tenant timeout", - .str_user_error = "Clone tenant timeout. %.*s", - .oracle_errno = 600, - .oracle_str_error = "ORA-00600: internal error code, arguments: -12003, Clone tenant timeout", - .oracle_str_user_error = "ORA-00600: internal error code, arguments: -12003, Clone tenant timeout. %.*s" -}; -static const _error _error_OB_ERR_CLONE_TENANT = { - .error_name = "OB_ERR_CLONE_TENANT", - .error_cause = "Internal Error", - .error_solution = "Contact OceanBase Support", - .mysql_errno = -1, - .sqlstate = "HY000", - .str_error = "Tenant clone job failed", - .str_user_error = "%.*s", - .oracle_errno = 600, - .oracle_str_error = "ORA-00600: internal error code, arguments: -12004, Tenant clone job failed", - .oracle_str_user_error = "ORA-00600: internal error code, arguments: -12004, %.*s" -}; -static const _error _error_OB_ERR_TENANT_SNAPSHOT = { - .error_name = "OB_ERR_TENANT_SNAPSHOT", - .error_cause = "Internal Error", - .error_solution = "Contact OceanBase Support", - .mysql_errno = -1, - .sqlstate = "HY000", - .str_error = "Tenant snapshot task failed", - .str_user_error = "%.*s", - .oracle_errno = 600, - .oracle_str_error = "ORA-00600: internal error code, arguments: -12005, Tenant snapshot task failed", - .oracle_str_user_error = "ORA-00600: internal error code, arguments: -12005, %.*s" -}; -static const _error _error_OB_TENANT_SNAPSHOT_LOCK_CONFLICT = { - .error_name = "OB_TENANT_SNAPSHOT_LOCK_CONFLICT", - .error_cause = "Internal Error", - .error_solution = "Contact OceanBase Support", - .mysql_errno = -1, - .sqlstate = "HY000", - .str_error = "Tenant snapshot lock conflict", - .str_user_error = "%s", - .oracle_errno = 600, - .oracle_str_error = "ORA-00600: internal error code, arguments: -12006, Tenant snapshot lock conflict", - .oracle_str_user_error = "ORA-00600: internal error code, arguments: -12006, %s" -}; static const _error _error_OB_SP_RAISE_APPLICATION_ERROR = { .error_name = "OB_SP_RAISE_APPLICATION_ERROR", .error_cause = "Internal Error", @@ -28552,6 +28552,13 @@ struct ObStrErrorInit _errors[-OB_TOO_MANY_OPEN_FILES] = &_error_OB_TOO_MANY_OPEN_FILES; _errors[-OB_DIRECT_LOAD_COMMIT_ERROR] = &_error_OB_DIRECT_LOAD_COMMIT_ERROR; _errors[-OB_S3_ERROR] = &_error_OB_S3_ERROR; + _errors[-OB_TENANT_SNAPSHOT_NOT_EXIST] = &_error_OB_TENANT_SNAPSHOT_NOT_EXIST; + _errors[-OB_TENANT_SNAPSHOT_EXIST] = &_error_OB_TENANT_SNAPSHOT_EXIST; + _errors[-OB_TENANT_SNAPSHOT_TIMEOUT] = &_error_OB_TENANT_SNAPSHOT_TIMEOUT; + _errors[-OB_CLONE_TENANT_TIMEOUT] = &_error_OB_CLONE_TENANT_TIMEOUT; + _errors[-OB_ERR_CLONE_TENANT] = &_error_OB_ERR_CLONE_TENANT; + _errors[-OB_ERR_TENANT_SNAPSHOT] = &_error_OB_ERR_TENANT_SNAPSHOT; + _errors[-OB_TENANT_SNAPSHOT_LOCK_CONFLICT] = &_error_OB_TENANT_SNAPSHOT_LOCK_CONFLICT; _errors[-OB_ERR_RESIZE_FILE_TO_SMALLER] = &_error_OB_ERR_RESIZE_FILE_TO_SMALLER; _errors[-OB_MARK_BLOCK_INFO_TIMEOUT] = &_error_OB_MARK_BLOCK_INFO_TIMEOUT; _errors[-OB_NOT_READY_TO_EXTEND_FILE] = &_error_OB_NOT_READY_TO_EXTEND_FILE; @@ -28848,13 +28855,6 @@ struct ObStrErrorInit _errors[-OB_CANNOT_USER_IF_EXISTS] = &_error_OB_CANNOT_USER_IF_EXISTS; _errors[-OB_ERR_ILLEGAL_USER_VAR] = &_error_OB_ERR_ILLEGAL_USER_VAR; _errors[-OB_ERR_FT_COLUMN_NOT_INDEXED] = &_error_OB_ERR_FT_COLUMN_NOT_INDEXED; - _errors[-OB_TENANT_SNAPSHOT_NOT_EXIST] = &_error_OB_TENANT_SNAPSHOT_NOT_EXIST; - _errors[-OB_TENANT_SNAPSHOT_EXIST] = &_error_OB_TENANT_SNAPSHOT_EXIST; - _errors[-OB_TENANT_SNAPSHOT_TIMEOUT] = &_error_OB_TENANT_SNAPSHOT_TIMEOUT; - _errors[-OB_CLONE_TENANT_TIMEOUT] = &_error_OB_CLONE_TENANT_TIMEOUT; - _errors[-OB_ERR_CLONE_TENANT] = &_error_OB_ERR_CLONE_TENANT; - _errors[-OB_ERR_TENANT_SNAPSHOT] = &_error_OB_ERR_TENANT_SNAPSHOT; - _errors[-OB_TENANT_SNAPSHOT_LOCK_CONFLICT] = &_error_OB_TENANT_SNAPSHOT_LOCK_CONFLICT; _errors[-OB_SP_RAISE_APPLICATION_ERROR] = &_error_OB_SP_RAISE_APPLICATION_ERROR; _errors[-OB_SP_RAISE_APPLICATION_ERROR_NUM] = &_error_OB_SP_RAISE_APPLICATION_ERROR_NUM; _errors[-OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN] = &_error_OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN; @@ -28896,7 +28896,7 @@ namespace oceanbase { namespace common { -int g_all_ob_errnos[2217] = {0, -4000, -4001, -4002, -4003, -4004, -4005, -4006, -4007, -4008, -4009, -4010, -4011, -4012, -4013, -4014, -4015, -4016, -4017, -4018, -4019, -4020, -4021, -4022, -4023, -4024, -4025, -4026, -4027, -4028, -4029, -4030, -4031, -4032, -4033, -4034, -4035, -4036, -4037, -4038, -4039, -4041, -4042, -4043, -4044, -4045, -4046, -4047, -4048, -4049, -4050, -4051, -4052, -4053, -4054, -4055, -4057, -4058, -4060, -4061, -4062, -4063, -4064, -4065, -4066, -4067, -4068, -4070, -4071, -4072, -4073, -4074, -4075, -4076, -4077, -4078, -4080, -4081, -4084, -4085, -4090, -4097, -4098, -4099, -4100, -4101, -4102, -4103, -4104, -4105, -4106, -4107, -4108, -4109, -4110, -4111, -4112, -4113, -4114, -4115, -4116, -4117, -4118, -4119, -4120, -4121, -4122, -4123, -4124, -4125, -4126, -4127, -4128, -4133, -4138, -4139, -4142, -4143, -4144, -4146, -4147, -4149, -4150, -4151, -4152, -4153, -4154, -4155, -4156, -4157, -4158, -4159, -4160, -4161, -4162, -4163, -4164, -4165, -4166, -4167, -4168, -4169, -4170, -4171, -4172, -4173, -4174, -4175, -4176, -4177, -4178, -4179, -4180, -4181, -4182, -4183, -4184, -4185, -4186, -4187, -4188, -4189, -4190, -4191, -4192, -4200, -4201, -4204, -4205, -4206, -4207, -4208, -4209, -4210, -4211, -4212, -4213, -4214, -4215, -4216, -4217, -4218, -4219, -4220, -4221, -4222, -4223, -4224, -4225, -4226, -4227, -4228, -4229, -4230, -4231, -4232, -4233, -4234, -4235, -4236, -4237, -4238, -4239, -4240, -4241, -4242, -4243, -4244, -4245, -4246, -4247, -4248, -4249, -4250, -4251, -4252, -4253, -4254, -4255, -4256, -4257, -4258, -4260, -4261, -4262, -4263, -4264, -4265, -4266, -4267, -4268, -4269, -4270, -4271, -4273, -4274, -4275, -4276, -4277, -4278, -4279, -4280, -4281, -4282, -4283, -4284, -4285, -4286, -4287, -4288, -4289, -4290, -4291, -4292, -4293, -4294, -4295, -4296, -4297, -4298, -4299, -4300, -4301, -4302, -4303, -4304, -4305, -4306, -4307, -4308, -4309, -4310, -4311, -4312, -4313, -4314, -4315, -4316, -4317, -4318, -4319, -4320, -4321, -4322, -4323, -4324, -4325, -4326, -4327, -4328, -4329, -4330, -4331, -4332, -4333, -4334, -4335, -4336, -4337, -4338, -4339, -4340, -4341, -4342, -4343, -4344, -4345, -4346, -4347, -4348, -4349, -4350, -4351, -4352, -4353, -4354, -4355, -4356, -4357, -4358, -4359, -4360, -4361, -4362, -4363, -4364, -4365, -4366, -4367, -4368, -4369, -4370, -4371, -4372, -4373, -4374, -4375, -4376, -4377, -4378, -4379, -4380, -4381, -4382, -4383, -4385, -4386, -4387, -4388, -4389, -4390, -4391, -4392, -4393, -4394, -4395, -4396, -4397, -4398, -4399, -4400, -4401, -4402, -4403, -4505, -4507, -4510, -4512, -4515, -4517, -4518, -4519, -4523, -4524, -4525, -4526, -4527, -4528, -4529, -4530, -4531, -4532, -4533, -4537, -4538, -4539, -4540, -4541, -4542, -4543, -4544, -4545, -4546, -4547, -4548, -4549, -4550, -4551, -4552, -4553, -4554, -4600, -4601, -4602, -4603, -4604, -4605, -4606, -4607, -4608, -4609, -4610, -4611, -4613, -4614, -4615, -4620, -4621, -4622, -4623, -4624, -4625, -4626, -4628, -4629, -4630, -4631, -4632, -4633, -4634, -4636, -4637, -4638, -4639, -4640, -4641, -4642, -4643, -4644, -4645, -4646, -4647, -4648, -4649, -4650, -4651, -4652, -4653, -4654, -4655, -4656, -4657, -4658, -4659, -4660, -4661, -4662, -4663, -4664, -4665, -4666, -4667, -4668, -4669, -4670, -4671, -4672, -4673, -4674, -4675, -4676, -4677, -4678, -4679, -4680, -4681, -4682, -4683, -4684, -4685, -4686, -4687, -4688, -4689, -4690, -4691, -4692, -4693, -4694, -4695, -4696, -4697, -4698, -4699, -4700, -4701, -4702, -4703, -4704, -4705, -4706, -4707, -4708, -4709, -4710, -4711, -4712, -4713, -4714, -4715, -4716, -4717, -4718, -4719, -4720, -4721, -4722, -4723, -4724, -4725, -4726, -4727, -4728, -4729, -4730, -4731, -4732, -4733, -4734, -4735, -4736, -4737, -4738, -4739, -4740, -4741, -4742, -4743, -4744, -4745, -4746, -4747, -4748, -4749, -4750, -4751, -4752, -4753, -4754, -4755, -4756, -4757, -4758, -4759, -4760, -4761, -4762, -4763, -4764, -4765, -4766, -4767, -4768, -4769, -4770, -4771, -5000, -5001, -5002, -5003, -5006, -5007, -5008, -5010, -5011, -5012, -5014, -5015, -5016, -5017, -5018, -5019, -5020, -5022, -5023, -5024, -5025, -5026, -5027, -5028, -5029, -5030, -5031, -5032, -5034, -5035, -5036, -5037, -5038, -5039, -5040, -5041, -5042, -5043, -5044, -5046, -5047, -5050, -5051, -5052, -5053, -5054, -5055, -5056, -5057, -5058, -5059, -5061, -5063, -5064, -5065, -5066, -5067, -5068, -5069, -5070, -5071, -5072, -5073, -5074, -5080, -5081, -5083, -5084, -5085, -5086, -5087, -5088, -5089, -5090, -5091, -5092, -5093, -5094, -5095, -5096, -5097, -5098, -5099, -5100, -5101, -5102, -5103, -5104, -5105, -5106, -5107, -5108, -5109, -5110, -5111, -5112, -5113, -5114, -5115, -5116, -5117, -5118, -5119, -5120, -5121, -5122, -5123, -5124, -5125, -5130, -5131, -5133, -5134, -5135, -5136, -5137, -5138, -5139, -5140, -5142, -5143, -5144, -5145, -5146, -5147, -5148, -5149, -5150, -5151, -5153, -5154, -5155, -5156, -5157, -5158, -5159, -5160, -5161, -5162, -5163, -5164, -5165, -5166, -5167, -5168, -5169, -5170, -5171, -5172, -5173, -5174, -5175, -5176, -5177, -5178, -5179, -5180, -5181, -5182, -5183, -5184, -5185, -5187, -5188, -5189, -5190, -5191, -5192, -5193, -5194, -5195, -5196, -5197, -5198, -5199, -5200, -5201, -5202, -5203, -5204, -5205, -5206, -5207, -5208, -5209, -5210, -5211, -5212, -5213, -5214, -5215, -5216, -5217, -5218, -5219, -5220, -5221, -5222, -5223, -5224, -5225, -5226, -5227, -5228, -5229, -5230, -5231, -5233, -5234, -5235, -5236, -5237, -5238, -5239, -5240, -5241, -5242, -5243, -5244, -5245, -5246, -5247, -5248, -5249, -5250, -5251, -5252, -5253, -5254, -5255, -5256, -5257, -5258, -5259, -5260, -5261, -5262, -5263, -5264, -5265, -5266, -5267, -5268, -5269, -5270, -5271, -5272, -5273, -5274, -5275, -5276, -5277, -5278, -5279, -5280, -5281, -5282, -5283, -5284, -5285, -5286, -5287, -5288, -5289, -5290, -5291, -5292, -5293, -5294, -5295, -5296, -5297, -5298, -5299, -5300, -5301, -5302, -5303, -5304, -5305, -5306, -5307, -5308, -5309, -5310, -5311, -5312, -5313, -5314, -5315, -5316, -5317, -5318, -5319, -5320, -5321, -5322, -5323, -5324, -5325, -5326, -5327, -5328, -5329, -5330, -5331, -5332, -5333, -5334, -5335, -5336, -5337, -5338, -5339, -5340, -5341, -5342, -5343, -5344, -5345, -5346, -5347, -5348, -5349, -5350, -5351, -5352, -5353, -5354, -5355, -5356, -5357, -5358, -5359, -5360, -5361, -5362, -5363, -5364, -5365, -5366, -5367, -5368, -5369, -5370, -5371, -5372, -5373, -5374, -5375, -5376, -5377, -5378, -5379, -5380, -5381, -5382, -5383, -5384, -5385, -5386, -5387, -5388, -5389, -5400, -5401, -5402, -5403, -5404, -5405, -5406, -5407, -5408, -5409, -5410, -5411, -5412, -5413, -5414, -5415, -5416, -5417, -5418, -5419, -5420, -5421, -5422, -5423, -5424, -5425, -5426, -5427, -5428, -5429, -5430, -5431, -5432, -5433, -5434, -5435, -5436, -5437, -5438, -5439, -5440, -5441, -5442, -5443, -5444, -5445, -5446, -5447, -5448, -5449, -5450, -5451, -5452, -5453, -5454, -5455, -5456, -5457, -5458, -5459, -5460, -5461, -5462, -5463, -5464, -5465, -5466, -5467, -5468, -5469, -5470, -5471, -5472, -5473, -5474, -5475, -5476, -5477, -5478, -5479, -5480, -5481, -5482, -5483, -5484, -5485, -5486, -5487, -5488, -5489, -5490, -5491, -5492, -5493, -5494, -5495, -5496, -5497, -5498, -5499, -5500, -5501, -5502, -5503, -5504, -5505, -5506, -5507, -5508, -5509, -5510, -5511, -5512, -5513, -5514, -5515, -5516, -5517, -5518, -5540, -5541, -5542, -5543, -5544, -5545, -5546, -5547, -5548, -5549, -5550, -5551, -5552, -5553, -5554, -5555, -5556, -5557, -5558, -5559, -5560, -5561, -5562, -5563, -5564, -5565, -5566, -5567, -5568, -5569, -5570, -5571, -5572, -5573, -5574, -5575, -5576, -5577, -5578, -5579, -5580, -5581, -5582, -5583, -5584, -5585, -5586, -5587, -5588, -5589, -5590, -5591, -5592, -5593, -5594, -5595, -5596, -5597, -5598, -5599, -5600, -5601, -5602, -5603, -5604, -5605, -5607, -5608, -5609, -5610, -5611, -5612, -5613, -5614, -5615, -5616, -5617, -5618, -5619, -5620, -5621, -5622, -5623, -5624, -5625, -5626, -5627, -5628, -5629, -5630, -5631, -5632, -5633, -5634, -5635, -5636, -5637, -5638, -5639, -5640, -5641, -5642, -5643, -5644, -5645, -5646, -5647, -5648, -5649, -5650, -5651, -5652, -5653, -5654, -5655, -5656, -5657, -5658, -5659, -5660, -5661, -5662, -5663, -5664, -5665, -5666, -5667, -5668, -5671, -5672, -5673, -5674, -5675, -5676, -5677, -5678, -5679, -5680, -5681, -5682, -5683, -5684, -5685, -5686, -5687, -5688, -5689, -5690, -5691, -5692, -5693, -5694, -5695, -5696, -5697, -5698, -5699, -5700, -5701, -5702, -5703, -5704, -5705, -5706, -5707, -5708, -5709, -5710, -5711, -5712, -5713, -5714, -5715, -5716, -5717, -5718, -5719, -5720, -5721, -5722, -5723, -5724, -5725, -5726, -5727, -5728, -5729, -5730, -5731, -5732, -5733, -5734, -5735, -5736, -5737, -5738, -5739, -5740, -5741, -5742, -5743, -5744, -5745, -5746, -5747, -5748, -5749, -5750, -5751, -5752, -5753, -5754, -5755, -5756, -5757, -5758, -5759, -5760, -5761, -5762, -5763, -5764, -5765, -5766, -5768, -5769, -5770, -5771, -5772, -5773, -5774, -5777, -5778, -5779, -5780, -5781, -5785, -5786, -5787, -5788, -5789, -5790, -5791, -5792, -5793, -5794, -5795, -5796, -5797, -5798, -5799, -5800, -5801, -5802, -5803, -5804, -5805, -5806, -5807, -5808, -5809, -5810, -5811, -5812, -5813, -5814, -5815, -5816, -5817, -5818, -5819, -5820, -5821, -5822, -5823, -5824, -5825, -5826, -5827, -5828, -5829, -5830, -5831, -5832, -5833, -5834, -5835, -5836, -5837, -5838, -5839, -5840, -5841, -5842, -5843, -5844, -5845, -5846, -5847, -5848, -5849, -5850, -5851, -5852, -5853, -5854, -5855, -5856, -5857, -5858, -5859, -5860, -5861, -5862, -5863, -5864, -5865, -5866, -5867, -5868, -5869, -5870, -5871, -5872, -5873, -5874, -5875, -5876, -5877, -5878, -5879, -5880, -5881, -5882, -5883, -5884, -5885, -5886, -5887, -5888, -5889, -5890, -5891, -5892, -5893, -5894, -5895, -5896, -5897, -5898, -5899, -5900, -5901, -5902, -5903, -5904, -5905, -5906, -5907, -5908, -5909, -5910, -5911, -5912, -5913, -5914, -5915, -5916, -5917, -5918, -5919, -5920, -5921, -5922, -5923, -5924, -5925, -5926, -5927, -5928, -5929, -5930, -5931, -5932, -5933, -5934, -5935, -5936, -5937, -5938, -5939, -5940, -5941, -5942, -5943, -5944, -5945, -5946, -5947, -5948, -5949, -5950, -5951, -5952, -5953, -5954, -5955, -5956, -5957, -5958, -5959, -5960, -5961, -5962, -5963, -5964, -5965, -5966, -5967, -5968, -5969, -5970, -5971, -5972, -5973, -5974, -5975, -5976, -5977, -5978, -5979, -5980, -5981, -5982, -5983, -5984, -5985, -5986, -5987, -5988, -5989, -5990, -5991, -5992, -5993, -5994, -5995, -5996, -5997, -5998, -5999, -6000, -6001, -6002, -6003, -6004, -6005, -6006, -6201, -6202, -6203, -6204, -6205, -6206, -6207, -6208, -6209, -6210, -6211, -6212, -6213, -6214, -6215, -6219, -6220, -6221, -6222, -6223, -6224, -6225, -6226, -6227, -6228, -6229, -6230, -6231, -6232, -6233, -6234, -6235, -6236, -6237, -6238, -6239, -6240, -6241, -6242, -6243, -6244, -6245, -6246, -6247, -6248, -6249, -6250, -6251, -6252, -6253, -6254, -6255, -6256, -6257, -6258, -6259, -6260, -6261, -6262, -6263, -6264, -6265, -6266, -6267, -6268, -6269, -6270, -6271, -6272, -6273, -6274, -6275, -6276, -6277, -6278, -6279, -6280, -6281, -6282, -6283, -6284, -6285, -6301, -6302, -6303, -6304, -6305, -6306, -6307, -6308, -6309, -6310, -6311, -6312, -6313, -6314, -6315, -6316, -6317, -6318, -6319, -6320, -6321, -6322, -6323, -6324, -6325, -6326, -6327, -6328, -7000, -7001, -7002, -7003, -7004, -7005, -7006, -7007, -7010, -7011, -7012, -7013, -7014, -7015, -7021, -7022, -7024, -7025, -7026, -7027, -7029, -7030, -7031, -7032, -7033, -7034, -7035, -7036, -7037, -7038, -7039, -7040, -7041, -7100, -7101, -7102, -7103, -7104, -7105, -7106, -7107, -7108, -7109, -7110, -7111, -7112, -7113, -7114, -7115, -7116, -7117, -7118, -7119, -7120, -7121, -7122, -7123, -7201, -7202, -7203, -7204, -7205, -7206, -7207, -7208, -7209, -7210, -7211, -7212, -7213, -7214, -7215, -7216, -7217, -7218, -7219, -7220, -7221, -7222, -7223, -7224, -7225, -7226, -7227, -7228, -7229, -7230, -7231, -7232, -7233, -7234, -7235, -7236, -7237, -7238, -7239, -7240, -7241, -7242, -7243, -7244, -7246, -7247, -7248, -7249, -7250, -7251, -7252, -7253, -7254, -7255, -7256, -7257, -7258, -7259, -7260, -7261, -7262, -7263, -7264, -7265, -7266, -7267, -7268, -7269, -7270, -7271, -7272, -7273, -7274, -7275, -7276, -7277, -7278, -7279, -7280, -7281, -7282, -7283, -7284, -7285, -7286, -7287, -7288, -7289, -7290, -7291, -7292, -7293, -7294, -7295, -7296, -7297, -7402, -7403, -7404, -7405, -7406, -7407, -7408, -7409, -7410, -7411, -7412, -7413, -7414, -7415, -7416, -7417, -7418, -7419, -7420, -7421, -7422, -7423, -7424, -7425, -7426, -7427, -7428, -7429, -7430, -7431, -7432, -7433, -8001, -8002, -8003, -8004, -8005, -9001, -9002, -9003, -9004, -9005, -9006, -9007, -9008, -9009, -9010, -9011, -9012, -9013, -9014, -9015, -9016, -9017, -9018, -9019, -9020, -9022, -9023, -9024, -9025, -9026, -9027, -9028, -9029, -9030, -9031, -9032, -9033, -9034, -9035, -9036, -9037, -9038, -9039, -9040, -9041, -9042, -9043, -9044, -9045, -9046, -9047, -9048, -9049, -9050, -9051, -9052, -9053, -9054, -9057, -9058, -9059, -9060, -9061, -9062, -9063, -9064, -9065, -9066, -9069, -9070, -9071, -9072, -9073, -9074, -9075, -9076, -9077, -9078, -9079, -9080, -9081, -9082, -9083, -9084, -9085, -9086, -9087, -9088, -9089, -9090, -9091, -9092, -9093, -9094, -9095, -9096, -9097, -9098, -9099, -9100, -9101, -9102, -9103, -9104, -9105, -9200, -9201, -9202, -9501, -9502, -9503, -9504, -9505, -9506, -9507, -9508, -9509, -9510, -9512, -9513, -9514, -9515, -9516, -9518, -9519, -9520, -9521, -9522, -9523, -9524, -9525, -9526, -9527, -9528, -9529, -9530, -9531, -9532, -9533, -9534, -9535, -9536, -9537, -9538, -9539, -9540, -9541, -9542, -9543, -9544, -9545, -9546, -9547, -9548, -9549, -9550, -9551, -9552, -9553, -9554, -9555, -9556, -9557, -9558, -9559, -9560, -9561, -9562, -9563, -9564, -9565, -9566, -9567, -9568, -9569, -9570, -9571, -9572, -9573, -9574, -9575, -9576, -9577, -9578, -9579, -9580, -9581, -9582, -9583, -9584, -9585, -9586, -9587, -9588, -9589, -9590, -9591, -9592, -9593, -9594, -9595, -9596, -9597, -9598, -9599, -9600, -9601, -9602, -9603, -9604, -9605, -9606, -9607, -9608, -9609, -9610, -9611, -9612, -9613, -9614, -9615, -9616, -9617, -9618, -9619, -9620, -9621, -9622, -9623, -9624, -9625, -9626, -9627, -9628, -9629, -9630, -9631, -9632, -9633, -9634, -9635, -9636, -9637, -9638, -9639, -9640, -9641, -9642, -9643, -9644, -9645, -9646, -9647, -9648, -9649, -9650, -9651, -9652, -9653, -9654, -9655, -9656, -9657, -9658, -9659, -9660, -9661, -9662, -9663, -9664, -9665, -9666, -9667, -9668, -9669, -9670, -9671, -9672, -9673, -9674, -9675, -9676, -9677, -9678, -9679, -9680, -9681, -9682, -9683, -9684, -9685, -9686, -9687, -9688, -9689, -9690, -9691, -9692, -9693, -9694, -9695, -9696, -9697, -9698, -9699, -9700, -9701, -9702, -9703, -9704, -9705, -9706, -9707, -9708, -9709, -9710, -9711, -9712, -9713, -9714, -9715, -9716, -9717, -9718, -9719, -9720, -9721, -9722, -9723, -9724, -9725, -9726, -9727, -9728, -9729, -9730, -9731, -9732, -9733, -9734, -9735, -9736, -9737, -9738, -9739, -9740, -9741, -9742, -9743, -9744, -9745, -9746, -9747, -9748, -9749, -9750, -9751, -9752, -9753, -9754, -9755, -9756, -9757, -9758, -9759, -9760, -9761, -9762, -9763, -9764, -9765, -10500, -10501, -10502, -10503, -10504, -10505, -10506, -10507, -10508, -10509, -10510, -10511, -10512, -10513, -10650, -11000, -11001, -11002, -11003, -11004, -11005, -11006, -11007, -11008, -11009, -11010, -11011, -11012, -11013, -11014, -12000, -12001, -12002, -12003, -12004, -12005, -12006, -20000, -21000, -22998, -30926, -32491, -38104, -38105}; +int g_all_ob_errnos[2217] = {0, -4000, -4001, -4002, -4003, -4004, -4005, -4006, -4007, -4008, -4009, -4010, -4011, -4012, -4013, -4014, -4015, -4016, -4017, -4018, -4019, -4020, -4021, -4022, -4023, -4024, -4025, -4026, -4027, -4028, -4029, -4030, -4031, -4032, -4033, -4034, -4035, -4036, -4037, -4038, -4039, -4041, -4042, -4043, -4044, -4045, -4046, -4047, -4048, -4049, -4050, -4051, -4052, -4053, -4054, -4055, -4057, -4058, -4060, -4061, -4062, -4063, -4064, -4065, -4066, -4067, -4068, -4070, -4071, -4072, -4073, -4074, -4075, -4076, -4077, -4078, -4080, -4081, -4084, -4085, -4090, -4097, -4098, -4099, -4100, -4101, -4102, -4103, -4104, -4105, -4106, -4107, -4108, -4109, -4110, -4111, -4112, -4113, -4114, -4115, -4116, -4117, -4118, -4119, -4120, -4121, -4122, -4123, -4124, -4125, -4126, -4127, -4128, -4133, -4138, -4139, -4142, -4143, -4144, -4146, -4147, -4149, -4150, -4151, -4152, -4153, -4154, -4155, -4156, -4157, -4158, -4159, -4160, -4161, -4162, -4163, -4164, -4165, -4166, -4167, -4168, -4169, -4170, -4171, -4172, -4173, -4174, -4175, -4176, -4177, -4178, -4179, -4180, -4181, -4182, -4183, -4184, -4185, -4186, -4187, -4188, -4189, -4190, -4191, -4192, -4200, -4201, -4204, -4205, -4206, -4207, -4208, -4209, -4210, -4211, -4212, -4213, -4214, -4215, -4216, -4217, -4218, -4219, -4220, -4221, -4222, -4223, -4224, -4225, -4226, -4227, -4228, -4229, -4230, -4231, -4232, -4233, -4234, -4235, -4236, -4237, -4238, -4239, -4240, -4241, -4242, -4243, -4244, -4245, -4246, -4247, -4248, -4249, -4250, -4251, -4252, -4253, -4254, -4255, -4256, -4257, -4258, -4260, -4261, -4262, -4263, -4264, -4265, -4266, -4267, -4268, -4269, -4270, -4271, -4273, -4274, -4275, -4276, -4277, -4278, -4279, -4280, -4281, -4282, -4283, -4284, -4285, -4286, -4287, -4288, -4289, -4290, -4291, -4292, -4293, -4294, -4295, -4296, -4297, -4298, -4299, -4300, -4301, -4302, -4303, -4304, -4305, -4306, -4307, -4308, -4309, -4310, -4311, -4312, -4313, -4314, -4315, -4316, -4317, -4318, -4319, -4320, -4321, -4322, -4323, -4324, -4325, -4326, -4327, -4328, -4329, -4330, -4331, -4332, -4333, -4334, -4335, -4336, -4337, -4338, -4339, -4340, -4341, -4342, -4343, -4344, -4345, -4346, -4347, -4348, -4349, -4350, -4351, -4352, -4353, -4354, -4355, -4356, -4357, -4358, -4359, -4360, -4361, -4362, -4363, -4364, -4365, -4366, -4367, -4368, -4369, -4370, -4371, -4372, -4373, -4374, -4375, -4376, -4377, -4378, -4379, -4380, -4381, -4382, -4383, -4385, -4386, -4387, -4388, -4389, -4390, -4391, -4392, -4393, -4394, -4395, -4396, -4397, -4398, -4399, -4400, -4401, -4402, -4403, -4505, -4507, -4510, -4512, -4515, -4517, -4518, -4519, -4523, -4524, -4525, -4526, -4527, -4528, -4529, -4530, -4531, -4532, -4533, -4537, -4538, -4539, -4540, -4541, -4542, -4543, -4544, -4545, -4546, -4547, -4548, -4549, -4550, -4551, -4552, -4553, -4554, -4600, -4601, -4602, -4603, -4604, -4605, -4606, -4607, -4608, -4609, -4610, -4611, -4613, -4614, -4615, -4620, -4621, -4622, -4623, -4624, -4625, -4626, -4628, -4629, -4630, -4631, -4632, -4633, -4634, -4636, -4637, -4638, -4639, -4640, -4641, -4642, -4643, -4644, -4645, -4646, -4647, -4648, -4649, -4650, -4651, -4652, -4653, -4654, -4655, -4656, -4657, -4658, -4659, -4660, -4661, -4662, -4663, -4664, -4665, -4666, -4667, -4668, -4669, -4670, -4671, -4672, -4673, -4674, -4675, -4676, -4677, -4678, -4679, -4680, -4681, -4682, -4683, -4684, -4685, -4686, -4687, -4688, -4689, -4690, -4691, -4692, -4693, -4694, -4695, -4696, -4697, -4698, -4699, -4700, -4701, -4702, -4703, -4704, -4705, -4706, -4707, -4708, -4709, -4710, -4711, -4712, -4713, -4714, -4715, -4716, -4717, -4718, -4719, -4720, -4721, -4722, -4723, -4724, -4725, -4726, -4727, -4728, -4729, -4730, -4731, -4732, -4733, -4734, -4735, -4736, -4737, -4738, -4739, -4740, -4741, -4742, -4743, -4744, -4745, -4746, -4747, -4748, -4749, -4750, -4751, -4752, -4753, -4754, -4755, -4756, -4757, -4758, -4759, -4760, -4761, -4762, -4763, -4764, -4765, -4766, -4767, -4768, -4769, -4770, -4771, -5000, -5001, -5002, -5003, -5006, -5007, -5008, -5010, -5011, -5012, -5014, -5015, -5016, -5017, -5018, -5019, -5020, -5022, -5023, -5024, -5025, -5026, -5027, -5028, -5029, -5030, -5031, -5032, -5034, -5035, -5036, -5037, -5038, -5039, -5040, -5041, -5042, -5043, -5044, -5046, -5047, -5050, -5051, -5052, -5053, -5054, -5055, -5056, -5057, -5058, -5059, -5061, -5063, -5064, -5065, -5066, -5067, -5068, -5069, -5070, -5071, -5072, -5073, -5074, -5080, -5081, -5083, -5084, -5085, -5086, -5087, -5088, -5089, -5090, -5091, -5092, -5093, -5094, -5095, -5096, -5097, -5098, -5099, -5100, -5101, -5102, -5103, -5104, -5105, -5106, -5107, -5108, -5109, -5110, -5111, -5112, -5113, -5114, -5115, -5116, -5117, -5118, -5119, -5120, -5121, -5122, -5123, -5124, -5125, -5130, -5131, -5133, -5134, -5135, -5136, -5137, -5138, -5139, -5140, -5142, -5143, -5144, -5145, -5146, -5147, -5148, -5149, -5150, -5151, -5153, -5154, -5155, -5156, -5157, -5158, -5159, -5160, -5161, -5162, -5163, -5164, -5165, -5166, -5167, -5168, -5169, -5170, -5171, -5172, -5173, -5174, -5175, -5176, -5177, -5178, -5179, -5180, -5181, -5182, -5183, -5184, -5185, -5187, -5188, -5189, -5190, -5191, -5192, -5193, -5194, -5195, -5196, -5197, -5198, -5199, -5200, -5201, -5202, -5203, -5204, -5205, -5206, -5207, -5208, -5209, -5210, -5211, -5212, -5213, -5214, -5215, -5216, -5217, -5218, -5219, -5220, -5221, -5222, -5223, -5224, -5225, -5226, -5227, -5228, -5229, -5230, -5231, -5233, -5234, -5235, -5236, -5237, -5238, -5239, -5240, -5241, -5242, -5243, -5244, -5245, -5246, -5247, -5248, -5249, -5250, -5251, -5252, -5253, -5254, -5255, -5256, -5257, -5258, -5259, -5260, -5261, -5262, -5263, -5264, -5265, -5266, -5267, -5268, -5269, -5270, -5271, -5272, -5273, -5274, -5275, -5276, -5277, -5278, -5279, -5280, -5281, -5282, -5283, -5284, -5285, -5286, -5287, -5288, -5289, -5290, -5291, -5292, -5293, -5294, -5295, -5296, -5297, -5298, -5299, -5300, -5301, -5302, -5303, -5304, -5305, -5306, -5307, -5308, -5309, -5310, -5311, -5312, -5313, -5314, -5315, -5316, -5317, -5318, -5319, -5320, -5321, -5322, -5323, -5324, -5325, -5326, -5327, -5328, -5329, -5330, -5331, -5332, -5333, -5334, -5335, -5336, -5337, -5338, -5339, -5340, -5341, -5342, -5343, -5344, -5345, -5346, -5347, -5348, -5349, -5350, -5351, -5352, -5353, -5354, -5355, -5356, -5357, -5358, -5359, -5360, -5361, -5362, -5363, -5364, -5365, -5366, -5367, -5368, -5369, -5370, -5371, -5372, -5373, -5374, -5375, -5376, -5377, -5378, -5379, -5380, -5381, -5382, -5383, -5384, -5385, -5386, -5387, -5388, -5389, -5400, -5401, -5402, -5403, -5404, -5405, -5406, -5407, -5408, -5409, -5410, -5411, -5412, -5413, -5414, -5415, -5416, -5417, -5418, -5419, -5420, -5421, -5422, -5423, -5424, -5425, -5426, -5427, -5428, -5429, -5430, -5431, -5432, -5433, -5434, -5435, -5436, -5437, -5438, -5439, -5440, -5441, -5442, -5443, -5444, -5445, -5446, -5447, -5448, -5449, -5450, -5451, -5452, -5453, -5454, -5455, -5456, -5457, -5458, -5459, -5460, -5461, -5462, -5463, -5464, -5465, -5466, -5467, -5468, -5469, -5470, -5471, -5472, -5473, -5474, -5475, -5476, -5477, -5478, -5479, -5480, -5481, -5482, -5483, -5484, -5485, -5486, -5487, -5488, -5489, -5490, -5491, -5492, -5493, -5494, -5495, -5496, -5497, -5498, -5499, -5500, -5501, -5502, -5503, -5504, -5505, -5506, -5507, -5508, -5509, -5510, -5511, -5512, -5513, -5514, -5515, -5516, -5517, -5518, -5540, -5541, -5542, -5543, -5544, -5545, -5546, -5547, -5548, -5549, -5550, -5551, -5552, -5553, -5554, -5555, -5556, -5557, -5558, -5559, -5560, -5561, -5562, -5563, -5564, -5565, -5566, -5567, -5568, -5569, -5570, -5571, -5572, -5573, -5574, -5575, -5576, -5577, -5578, -5579, -5580, -5581, -5582, -5583, -5584, -5585, -5586, -5587, -5588, -5589, -5590, -5591, -5592, -5593, -5594, -5595, -5596, -5597, -5598, -5599, -5600, -5601, -5602, -5603, -5604, -5605, -5607, -5608, -5609, -5610, -5611, -5612, -5613, -5614, -5615, -5616, -5617, -5618, -5619, -5620, -5621, -5622, -5623, -5624, -5625, -5626, -5627, -5628, -5629, -5630, -5631, -5632, -5633, -5634, -5635, -5636, -5637, -5638, -5639, -5640, -5641, -5642, -5643, -5644, -5645, -5646, -5647, -5648, -5649, -5650, -5651, -5652, -5653, -5654, -5655, -5656, -5657, -5658, -5659, -5660, -5661, -5662, -5663, -5664, -5665, -5666, -5667, -5668, -5671, -5672, -5673, -5674, -5675, -5676, -5677, -5678, -5679, -5680, -5681, -5682, -5683, -5684, -5685, -5686, -5687, -5688, -5689, -5690, -5691, -5692, -5693, -5694, -5695, -5696, -5697, -5698, -5699, -5700, -5701, -5702, -5703, -5704, -5705, -5706, -5707, -5708, -5709, -5710, -5711, -5712, -5713, -5714, -5715, -5716, -5717, -5718, -5719, -5720, -5721, -5722, -5723, -5724, -5725, -5726, -5727, -5728, -5729, -5730, -5731, -5732, -5733, -5734, -5735, -5736, -5737, -5738, -5739, -5740, -5741, -5742, -5743, -5744, -5745, -5746, -5747, -5748, -5749, -5750, -5751, -5752, -5753, -5754, -5755, -5756, -5757, -5758, -5759, -5760, -5761, -5762, -5763, -5764, -5765, -5766, -5768, -5769, -5770, -5771, -5772, -5773, -5774, -5777, -5778, -5779, -5780, -5781, -5785, -5786, -5787, -5788, -5789, -5790, -5791, -5792, -5793, -5794, -5795, -5796, -5797, -5798, -5799, -5800, -5801, -5802, -5803, -5804, -5805, -5806, -5807, -5808, -5809, -5810, -5811, -5812, -5813, -5814, -5815, -5816, -5817, -5818, -5819, -5820, -5821, -5822, -5823, -5824, -5825, -5826, -5827, -5828, -5829, -5830, -5831, -5832, -5833, -5834, -5835, -5836, -5837, -5838, -5839, -5840, -5841, -5842, -5843, -5844, -5845, -5846, -5847, -5848, -5849, -5850, -5851, -5852, -5853, -5854, -5855, -5856, -5857, -5858, -5859, -5860, -5861, -5862, -5863, -5864, -5865, -5866, -5867, -5868, -5869, -5870, -5871, -5872, -5873, -5874, -5875, -5876, -5877, -5878, -5879, -5880, -5881, -5882, -5883, -5884, -5885, -5886, -5887, -5888, -5889, -5890, -5891, -5892, -5893, -5894, -5895, -5896, -5897, -5898, -5899, -5900, -5901, -5902, -5903, -5904, -5905, -5906, -5907, -5908, -5909, -5910, -5911, -5912, -5913, -5914, -5915, -5916, -5917, -5918, -5919, -5920, -5921, -5922, -5923, -5924, -5925, -5926, -5927, -5928, -5929, -5930, -5931, -5932, -5933, -5934, -5935, -5936, -5937, -5938, -5939, -5940, -5941, -5942, -5943, -5944, -5945, -5946, -5947, -5948, -5949, -5950, -5951, -5952, -5953, -5954, -5955, -5956, -5957, -5958, -5959, -5960, -5961, -5962, -5963, -5964, -5965, -5966, -5967, -5968, -5969, -5970, -5971, -5972, -5973, -5974, -5975, -5976, -5977, -5978, -5979, -5980, -5981, -5982, -5983, -5984, -5985, -5986, -5987, -5988, -5989, -5990, -5991, -5992, -5993, -5994, -5995, -5996, -5997, -5998, -5999, -6000, -6001, -6002, -6003, -6004, -6005, -6006, -6201, -6202, -6203, -6204, -6205, -6206, -6207, -6208, -6209, -6210, -6211, -6212, -6213, -6214, -6215, -6219, -6220, -6221, -6222, -6223, -6224, -6225, -6226, -6227, -6228, -6229, -6230, -6231, -6232, -6233, -6234, -6235, -6236, -6237, -6238, -6239, -6240, -6241, -6242, -6243, -6244, -6245, -6246, -6247, -6248, -6249, -6250, -6251, -6252, -6253, -6254, -6255, -6256, -6257, -6258, -6259, -6260, -6261, -6262, -6263, -6264, -6265, -6266, -6267, -6268, -6269, -6270, -6271, -6272, -6273, -6274, -6275, -6276, -6277, -6278, -6279, -6280, -6281, -6282, -6283, -6284, -6285, -6301, -6302, -6303, -6304, -6305, -6306, -6307, -6308, -6309, -6310, -6311, -6312, -6313, -6314, -6315, -6316, -6317, -6318, -6319, -6320, -6321, -6322, -6323, -6324, -6325, -6326, -6327, -6328, -7000, -7001, -7002, -7003, -7004, -7005, -7006, -7007, -7010, -7011, -7012, -7013, -7014, -7015, -7021, -7022, -7024, -7025, -7026, -7027, -7029, -7030, -7031, -7032, -7033, -7034, -7035, -7036, -7037, -7038, -7039, -7040, -7041, -7100, -7101, -7102, -7103, -7104, -7105, -7106, -7107, -7108, -7109, -7110, -7111, -7112, -7113, -7114, -7115, -7116, -7117, -7118, -7119, -7120, -7121, -7122, -7123, -7201, -7202, -7203, -7204, -7205, -7206, -7207, -7208, -7209, -7210, -7211, -7212, -7213, -7214, -7215, -7216, -7217, -7218, -7219, -7220, -7221, -7222, -7223, -7224, -7225, -7226, -7227, -7228, -7229, -7230, -7231, -7232, -7233, -7234, -7235, -7236, -7237, -7238, -7239, -7240, -7241, -7242, -7243, -7244, -7246, -7247, -7248, -7249, -7250, -7251, -7252, -7253, -7254, -7255, -7256, -7257, -7258, -7259, -7260, -7261, -7262, -7263, -7264, -7265, -7266, -7267, -7268, -7269, -7270, -7271, -7272, -7273, -7274, -7275, -7276, -7277, -7278, -7279, -7280, -7281, -7282, -7283, -7284, -7285, -7286, -7287, -7288, -7289, -7290, -7291, -7292, -7293, -7294, -7295, -7296, -7297, -7402, -7403, -7404, -7405, -7406, -7407, -7408, -7409, -7410, -7411, -7412, -7413, -7414, -7415, -7416, -7417, -7418, -7419, -7420, -7421, -7422, -7423, -7424, -7425, -7426, -7427, -7428, -7429, -7430, -7431, -7432, -7433, -8001, -8002, -8003, -8004, -8005, -9001, -9002, -9003, -9004, -9005, -9006, -9007, -9008, -9009, -9010, -9011, -9012, -9013, -9014, -9015, -9016, -9017, -9018, -9019, -9020, -9022, -9023, -9024, -9025, -9026, -9027, -9028, -9029, -9030, -9031, -9032, -9033, -9034, -9035, -9036, -9037, -9038, -9039, -9040, -9041, -9042, -9043, -9044, -9045, -9046, -9047, -9048, -9049, -9050, -9051, -9052, -9053, -9054, -9057, -9058, -9059, -9060, -9061, -9062, -9063, -9064, -9065, -9066, -9069, -9070, -9071, -9072, -9073, -9074, -9075, -9076, -9077, -9078, -9079, -9080, -9081, -9082, -9083, -9084, -9085, -9086, -9087, -9088, -9089, -9090, -9091, -9092, -9093, -9094, -9095, -9096, -9097, -9098, -9099, -9100, -9101, -9102, -9103, -9104, -9105, -9106, -9107, -9108, -9109, -9110, -9111, -9112, -9200, -9201, -9202, -9501, -9502, -9503, -9504, -9505, -9506, -9507, -9508, -9509, -9510, -9512, -9513, -9514, -9515, -9516, -9518, -9519, -9520, -9521, -9522, -9523, -9524, -9525, -9526, -9527, -9528, -9529, -9530, -9531, -9532, -9533, -9534, -9535, -9536, -9537, -9538, -9539, -9540, -9541, -9542, -9543, -9544, -9545, -9546, -9547, -9548, -9549, -9550, -9551, -9552, -9553, -9554, -9555, -9556, -9557, -9558, -9559, -9560, -9561, -9562, -9563, -9564, -9565, -9566, -9567, -9568, -9569, -9570, -9571, -9572, -9573, -9574, -9575, -9576, -9577, -9578, -9579, -9580, -9581, -9582, -9583, -9584, -9585, -9586, -9587, -9588, -9589, -9590, -9591, -9592, -9593, -9594, -9595, -9596, -9597, -9598, -9599, -9600, -9601, -9602, -9603, -9604, -9605, -9606, -9607, -9608, -9609, -9610, -9611, -9612, -9613, -9614, -9615, -9616, -9617, -9618, -9619, -9620, -9621, -9622, -9623, -9624, -9625, -9626, -9627, -9628, -9629, -9630, -9631, -9632, -9633, -9634, -9635, -9636, -9637, -9638, -9639, -9640, -9641, -9642, -9643, -9644, -9645, -9646, -9647, -9648, -9649, -9650, -9651, -9652, -9653, -9654, -9655, -9656, -9657, -9658, -9659, -9660, -9661, -9662, -9663, -9664, -9665, -9666, -9667, -9668, -9669, -9670, -9671, -9672, -9673, -9674, -9675, -9676, -9677, -9678, -9679, -9680, -9681, -9682, -9683, -9684, -9685, -9686, -9687, -9688, -9689, -9690, -9691, -9692, -9693, -9694, -9695, -9696, -9697, -9698, -9699, -9700, -9701, -9702, -9703, -9704, -9705, -9706, -9707, -9708, -9709, -9710, -9711, -9712, -9713, -9714, -9715, -9716, -9717, -9718, -9719, -9720, -9721, -9722, -9723, -9724, -9725, -9726, -9727, -9728, -9729, -9730, -9731, -9732, -9733, -9734, -9735, -9736, -9737, -9738, -9739, -9740, -9741, -9742, -9743, -9744, -9745, -9746, -9747, -9748, -9749, -9750, -9751, -9752, -9753, -9754, -9755, -9756, -9757, -9758, -9759, -9760, -9761, -9762, -9763, -9764, -9765, -10500, -10501, -10502, -10503, -10504, -10505, -10506, -10507, -10508, -10509, -10510, -10511, -10512, -10513, -10650, -11000, -11001, -11002, -11003, -11004, -11005, -11006, -11007, -11008, -11009, -11010, -11011, -11012, -11013, -11014, -20000, -21000, -22998, -30926, -32491, -38104, -38105}; const char *ob_error_name(const int err) { const char *ret = "Unknown error"; diff --git a/src/share/ob_errno.def b/src/share/ob_errno.def index 1ade398655..bbd8da1a50 100755 --- a/src/share/ob_errno.def +++ b/src/share/ob_errno.def @@ -6,17 +6,27 @@ // SQL层错误码值域[-5000, -6000),含各种schema相关错误 // 事务层错误码值域[-6000, -7000),含clog,memtable等 // Election错误码值域[-7000, -7100) -// GIS错误码值域 [-7201, -7300) +// 负载均衡(Transfer)错误码值域[-7100, -7200) +// GIS错误码值域 [-7201, -7400) +// XML错误码值域 [-7400, -7600) // 致命错误[-8000, -9000),客户端收到8xxx错误,需要关闭SQL连接 -// backup [-9000, -9500) -// pl [-9500, -10000) +// Storage错误码值域 [-9000, -9500) +// PL/SQL错误码值域 [-9500, -10000) // OBProxy整体通用错误码,针对公共模块的代码抛出的错误,值域:[-10000, -10100) -// OBProxy业务错误码,值域:[-10100, -10300) -// OBSharding错误码,值域:[-10300, -10500) -// OBKV错误码,值域:[-10500, -10700) +// OBProxy业务错误码值域:[-10100, -10300) +// OBSharding错误码值域:[-10300, -10500) +// OBKV错误码值域:[-10500, -10700) // 富客户端错误码,值域:[-10700, -10900) // SQL扩展区段1:[-11000, -12000) -// 租户快照和克隆:[-12000, -12100) + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////// //error code -1~-999 are reserved @@ -94,7 +104,7 @@ DEFINE_ERROR_DEP(OB_SUCCESS, 0, 0, "00000", "Success"); //////////////////////////////////////////////////////////////// -//error code for common -4000 ---- -4500 +// 通用错误码值域[-4000, -4500),含sstable等 //////////////////////////////////////////////////////////////// DEFINE_ERROR_DEP(OB_ERROR, -4000, -1, "HY000", "Common error"); DEFINE_ERROR_DEP(OB_OBJ_TYPE_ERROR, -4001, -1, "HY004", "Object type error"); @@ -461,10 +471,24 @@ DEFINE_ERROR(OB_ERR_UNEXPECTED_UNIT_STATUS, -4399, -1, "HY000", "Unit status is DEFINE_ERROR(OB_AUTOINC_CACHE_NOT_EQUAL, -4400, -1, "HY000", "Autoinc cache's autoinc version is not equal to request's autoinc version"); DEFINE_ORACLE_ERROR(OB_ERR_KILL_CLIENT_SESSION, -4401, 4401, "HY000", "Client Session need be killed", 4401, "Client Session need be killed"); DEFINE_ERROR(OB_ERR_KILL_CLIENT_SESSION_FAILED, -4402, -1, "HY000", "Kill Client Session failed"); - DEFINE_ERROR(OB_IMPROPER_OS_PARAM, -4403, -1, "HY000", "OS params check failed, because the operating system has improper parameter configurations"); + +// 余留位置 //////////////////////////////////////////////////////////////// -//error code for root server & server management -4500 ---- -5000 +// 通用错误码值域[-4000, -4500),含sstable等 +//////////////////////////////////////////////////////////////// + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////// +// RootServer错误码值域[-4500, -5000) //////////////////////////////////////////////////////////////// DEFINE_ERROR(OB_IMPORT_NOT_IN_SERVER, -4505, -1, "HY000", "Import not in service"); DEFINE_ERROR(OB_CONVERT_ERROR, -4507, -1, "42000", "Convert error"); @@ -673,8 +697,22 @@ DEFINE_ERROR_EXT_DEP(OB_INVALID_ROOT_KEY, -4769, -1, "HY000", "invalid root key" DEFINE_ERROR_EXT(OB_CONFLICT_WITH_CLONE, -4770, -1, "HY000", "conflict case with clone operation", "Tenant (%ld) is in %s procedure, %s not allowed now"); DEFINE_ERROR(OB_BREAK_BY_TEST, -4771, -1, "HY000", "process is breaked by test case"); +// 余留位置 //////////////////////////////////////////////////////////////// -// SQL & Schema specific error code, -5000 ~ -6000 +// RootServer错误码值域[-4500, -5000) +//////////////////////////////////////////////////////////////// + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////// +// SQL层错误码值域[-5000, -6000),含各种schema相关错误 //////////////////////////////////////////////////////////////// DEFINE_ERROR(OB_ERR_PARSER_INIT, -5000, ER_PARSE_ERROR, "0B000", "Failed to init SQL parser"); DEFINE_ORACLE_ERROR_EXT(OB_ERR_PARSE_SQL, -5001, ER_PARSE_ERROR, "42000", "Parse error", "%s near \'%.*s\' at line %d", 900, "invalid SQL statement", "%s near \'%.*s\' at line %d"); @@ -1657,8 +1695,22 @@ DEFINE_ORACLE_ERROR(OB_ERR_INVALID_DATA_TYPE_INTERVAL_TABLE, -5998, -1, "HY000", DEFINE_ORACLE_ERROR(OB_ERR_INTERVAL_EXPR_NOT_CORRECT_TYPE, -5999, -1, "HY000", "Interval expression is not a constant of the correct type", 14752, "Interval expression is not a constant of the correct type"); DEFINE_ORACLE_ERROR(OB_ERR_TABLE_IS_ALREADY_A_RANGE_PARTITIONED_TABLE, -6000, -1, "HY000", "Table is already a range partitioned table", 14757, "Table is already a range partitioned table"); +// 余留位置,该区间已经用完 +//////////////////////////// 结束 ////////////////////////////// +// SQL层错误码值域[-5000, -6000),含各种schema相关错误 //////////////////////////////////////////////////////////////// -//error code for transaction, mvcc and commitlog -6001 ---- -7000 + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////// +// 事务层错误码值域[-6000, -7000),含clog,memtable等 //////////////////////////////////////////////////////////////// DEFINE_ERROR(OB_TRANSACTION_SET_VIOLATION, -6001, -1, "25000", "Transaction set changed during the execution"); @@ -1789,11 +1841,22 @@ DEFINE_ERROR(OB_TABLE_LOCK_SPLIT_TWICE, -6326, -1, "HY000", "table lock has been DEFINE_ERROR(OB_TABLE_LOCK_IS_SPLITTING, -6327, -1, "HY000", "table lock is being splitted, can not be splitted again") DEFINE_ERROR(OB_TABLE_LOCK_SPLIT_FAIL, -6328, -1, "HY000", "table lock splitting failed") -// for freeze -// DEFINE_ERROR(OB_TABLET_FREEZE_TIMEOUT, -6400, -1, "HY000", "tablet_freeze timeout"); +// 余留位置 +//////////////////////////////////////////////////////////////// +// 事务层错误码值域[-6000, -7000),含clog,memtable等 +//////////////////////////////////////////////////////////////// + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////// -//error code for election -7000 ---- -7100 +// Election错误码值域[-7000, -7100) //////////////////////////////////////////////////////////////// DEFINE_ERROR(OB_ELECTION_WARN_LOGBUF_FULL, -7000, -1, "HY000", "The log buffer is full"); DEFINE_ERROR(OB_ELECTION_WARN_LOGBUF_EMPTY, -7001, -1, "HY000", "The log buffer is empty"); @@ -1829,8 +1892,22 @@ DEFINE_ERROR(OB_ELECTION_BELOW_MAJORITY, -7039, -1, "HY000", "not reach majority DEFINE_ERROR(OB_ELECTION_OVER_MAJORITY, -7040, -1, "HY000", "over majority"); DEFINE_ERROR(OB_ELECTION_DURING_UPGRADING, -7041, -1, "HY000", "election priority mechanism changed, maybe during upgrading"); +// 余留位置 //////////////////////////////////////////////////////////////// -//error code for replication group -7100 ---- -7200 +// Election错误码值域[-7000, -7100) +//////////////////////////////////////////////////////////////// + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////// +// 负载均衡(Transfer)错误码值域[-7100, -7200) //////////////////////////////////////////////////////////////// DEFINE_ERROR(OB_TRANSFER_TASK_COMPLETED, -7100, -1, "HY000", "transfer task completed"); DEFINE_ERROR(OB_TOO_MANY_TRANSFER_TASK, -7101, -1, "HY000", "too many transfer tasks"); @@ -1856,8 +1933,23 @@ DEFINE_ERROR(OB_TABLET_GC_LOCK_CONFLICT, -7120, -1, "HY000", "tablet GC lock con DEFINE_ERROR(OB_SEQUENCE_NOT_MATCH, -7121, -1, "HY000", "compare sequence not match"); DEFINE_ERROR(OB_SEQUENCE_TOO_SMALL, -7122, -1, "HY000", "compare sequence too small"); DEFINE_ERROR(OB_TRANSFER_CANNOT_START, -7123, -1, "HY000", "transfer cannot start"); + +// 余留位置 +//////////////////////////////////////////////////////////////// +// 负载均衡(Transfer)错误码值域[-7100, -7200) +//////////////////////////////////////////////////////////////// + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -//error code for gis -7201 ---- -7300 +// GIS错误码值域 [-7201, -7400) ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// DEFINE_ORACLE_ERROR_EXT_DEP(OB_ERR_GIS_DIFFERENT_SRIDS, -7201, ER_GIS_DIFFERENT_SRIDS, "HY000", "Binary geometry function given two geometries of different srids.", "Binary geometry function %s given two geometries of different srids: %u and %u, which should have been identical.", 600, "Binary geometry function given two geometries of different srids.", "Binary geometry function %s given two geometries of different srids: %u and %u, which should have been identical."); DEFINE_ORACLE_ERROR_EXT_DEP(OB_ERR_GIS_UNSUPPORTED_ARGUMENT, -7202, ER_GIS_UNSUPPORTED_ARGUMENT, "HY000", "Calling geometry function with unsupported types of arguments.", "Calling geometry function %s with unsupported types of arguments.", 600, "Calling geometry function with unsupported types of arguments.", "Calling geometry function %s with unsupported types of arguments."); @@ -1955,6 +2047,25 @@ DEFINE_ORACLE_ERROR_DEP(OB_ERR_INVALID_NULL_SDO_GEOMETRY, -7294, -1, "HY000", "I DEFINE_ORACLE_ERROR_DEP(OB_ERR_INVALID_DATA_IN_SDO_ELEM_INFO_ARRAY, -7295, -1, "HY000", "Invalid data in the SDO_ELEM_INFO_ARRAY in SDO_GEOMETRY object", 13033, "Invalid data in the SDO_ELEM_INFO_ARRAY in SDO_GEOMETRY object"); DEFINE_ORACLE_ERROR_DEP(OB_ERR_INVALID_DATA_IN_SDO_ORDINATE_ARRAY, -7296, -1, "HY000", "Invalid data in the SDO_ORDINATE_ARRAY in SDO_GEOMETRY object", 13034, "Invalid data in the SDO_ORDINATE_ARRAY in SDO_GEOMETRY object"); DEFINE_ORACLE_ERROR_DEP(OB_ERR_VALUE_NOT_ALLOWED, -7297, -1, "HY000", "value not allowed", 24323, "value not allowed"); + +// 余留位置 +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// GIS错误码值域 [-7201, -7400) +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// XML错误码值域 [-7400, -7600) +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + DEFINE_ORACLE_ERROR_EXT(OB_ERR_INVALID_XML_DATATYPE, -7402, -1, "22000", "Invalid data type for the operation", "inconsistent datatypes: expected %s got %s", 932, "inconsistent datatypes", "inconsistent datatypes: expected %s got %s"); DEFINE_ORACLE_ERROR(OB_ERR_XML_MISSING_COMMA, -7403, -1, "42000", "missing comma", 917, "missing comma"); DEFINE_ORACLE_ERROR(OB_ERR_INVALID_XPATH_EXPRESSION, -7404, ER_UNKNOWN_ERROR, "42000", "invalid xpath expression", 31013, "invalid xpath expression"); @@ -1988,8 +2099,22 @@ DEFINE_ORACLE_ERROR(OB_ERR_JSON_FUN_UNSUPPORTED_TYPE, -7431, -1, "HY000", "Input DEFINE_ORACLE_ERROR(OB_ERR_COMPARE_VARRAY_LOB_ATTR, -7432, -1, "42000", "cannot compare VARRAY or LOB attributes of an object type", 22901, "cannot compare VARRAY or LOB attributes of an object type"); DEFINE_ORACLE_ERROR(OB_ERR_XML_PARENT_ALREADY_CONTAINS_CHILD, -7433, -1, "42000", "Parent %.*s already contains child entry %.*s", 31003, "Parent %.*s already contains child entry %.*s"); +// 余留位置 +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// XML错误码值域 [-7400, -7600) +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////// -// !!! Fatal errors and the client should close the connection, -8000 ~ -8999 +// 致命错误[-8000, -9000),客户端收到8xxx错误,需要关闭SQL连接 //////////////////////////////////////////////////////////////// DEFINE_ERROR(OB_SERVER_IS_INIT, -8001, -1, "08004", "Server is initializing"); DEFINE_ERROR(OB_SERVER_IS_STOPPING, -8002, -1, "08004", "Server is stopping"); @@ -1997,8 +2122,22 @@ DEFINE_ERROR(OB_PACKET_CHECKSUM_ERROR, -8003, -1, "08004", "Packet checksum erro DEFINE_ERROR_DEP(OB_PACKET_CLUSTER_ID_NOT_MATCH, -8004, -1, "08004", "Packet cluster_id not match"); DEFINE_ERROR_DEP(OB_TENANT_ID_NOT_MATCH, -8005, -1, "08005", "Tenant id not match"); +// 余留位置 //////////////////////////////////////////////////////////////// -// backup and restore error codes 9000 - 9099 +// 致命错误[-8000, -9000),客户端收到8xxx错误,需要关闭SQL连接 +//////////////////////////////////////////////////////////////// + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////// +// Storage错误码值域 [-9000, -9500) //////////////////////////////////////////////////////////////// DEFINE_ERROR_DEP(OB_URI_ERROR, -9001, -1, "HY000", "URI error"); DEFINE_ERROR_DEP(OB_FINAL_MD5_ERROR, -9002, -1, "HY000", "OSS file MD5 error"); @@ -2103,11 +2242,7 @@ DEFINE_ERROR(OB_ERR_RESTORE_STANDBY_VERSION_LAG, -9096, -1, "HY000", "standby bi DEFINE_ERROR(OB_ERR_RESTORE_PRIMARY_TENANT_DROPPED, -9097, -1, "HY000", "primary tenant has been dropped"); DEFINE_ERROR_DEP(OB_CLOUD_OBJECT_NOT_APPENDABLE, -9098, -1, "HY000", "normal object in object_storage(oss,cos,etc.) can't be appended content"); DEFINE_ERROR_EXT_DEP(OB_RESTORE_TENANT_FAILED, -9099, -1, "HY000", "restore tenant failed", "%s restore failed, %s"); -// end of backup and restore error codes 9001 ~ 9099 -//////////////////////////////////////////////////////////////// -//error code for STORAGE3.0 -9100 ~ -//////////////////////////////////////////////////////////////// DEFINE_ERROR(OB_NO_SUCH_FILE_OR_DIRECTORY, -9100, -1, "HY000", "no such file or directory"); DEFINE_ERROR(OB_FILE_OR_DIRECTORY_EXIST, -9101, -1, "HY000", "file or directory already exist"); DEFINE_ERROR(OB_FILE_OR_DIRECTORY_PERMISSION_DENIED, -9102, -1, "HY000", "file or directory permission denied"); @@ -2115,15 +2250,42 @@ DEFINE_ERROR(OB_TOO_MANY_OPEN_FILES, -9103, -1, "HY000", "too many open files"); DEFINE_ERROR(OB_DIRECT_LOAD_COMMIT_ERROR, -9104, -1, "HY000", "fail to commit direct load"); DEFINE_ERROR_DEP(OB_S3_ERROR, -9105, -1, "HY000", "S3 error"); +// For tenant snapshot +DEFINE_ERROR_EXT_DEP(OB_TENANT_SNAPSHOT_NOT_EXIST, -9106, -1, "HY000", "Tenant snapshot does not exist", "Tenant snapshot \'%.*s\' does not exist"); +DEFINE_ERROR_EXT_DEP(OB_TENANT_SNAPSHOT_EXIST, -9107, -1, "HY000", "Tenant snapshot already exist", "Tenant snapshot \'%.*s\' already exist"); +DEFINE_ERROR_EXT_DEP(OB_TENANT_SNAPSHOT_TIMEOUT, -9108, -1, "HY000", "Tenant snapshot task timeout", "Tenant snapshot task timeout. %.*s"); +DEFINE_ERROR_EXT_DEP(OB_CLONE_TENANT_TIMEOUT, -9109, -1, "HY000", "Clone tenant timeout", "Clone tenant timeout. %.*s"); +DEFINE_ERROR_EXT_DEP(OB_ERR_CLONE_TENANT, -9110, -1, "HY000", "Tenant clone job failed", "%.*s"); +DEFINE_ERROR_EXT_DEP(OB_ERR_TENANT_SNAPSHOT, -9111, -1, "HY000", "Tenant snapshot task failed", "%.*s"); +DEFINE_ERROR_EXT_DEP(OB_TENANT_SNAPSHOT_LOCK_CONFLICT, -9112, -1, "HY000", "Tenant snapshot lock conflict", "%s"); + +// 余留位置,在该行之前继续添加storage错误码 + //////////////////////////////////////////////////////////////// -//error code for storage auto extend file +// error code for storage auto extend file +// 这一段是被错误在中间占位的错误码,不是一个完整区间 //////////////////////////////////////////////////////////////// DEFINE_ERROR(OB_ERR_RESIZE_FILE_TO_SMALLER, -9200, -1, "HY000", "Extend ssblock file to smaller is not allowed"); DEFINE_ERROR(OB_MARK_BLOCK_INFO_TIMEOUT, -9201, -1, "HY000", "Mark blocks timeout(5s) in auto extend process when alloc block fail"); DEFINE_ERROR(OB_NOT_READY_TO_EXTEND_FILE, -9202, -1, "HY000", "Auto extend param is not ready to start extending file"); +//////////////////////////////////////////////////////////////// + +// 余留位置 +//////////////////////////////////////////////////////////////// +// Storage错误码值域 [-9000, -9500) +//////////////////////////////////////////////////////////////// + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////// -//error code for PL/SQL -9500 ~ -10000 +// PL/SQL错误码值域 [-9500, -10000) //!!! -20000/-21000/-32491 should not in here. but we can not remove it now because of compat. ONLY PL SQL ERROR PUT HERE!!! //////////////////////////////////////////////////////////////// DEFINE_ORACLE_ERROR_V2_EXT(OB_SP_RAISE_APPLICATION_ERROR, -20000, -1, "HY000", "The stored procedure 'raise_application_error' was called which causes this error to be generated", "%.*s", 20000, "ORA-20000: The stored procedure 'raise_application_error' was called which causes this error to be generated", "ORA%06ld: %.*s"); @@ -2395,8 +2557,23 @@ DEFINE_ORACLE_ERROR(OB_ERR_OUT_PARAM_NOT_BIND_VAR, -9763, -1, "HY000", "output p DEFINE_ORACLE_ERROR_EXT(OB_ERR_TIME_EARLIER_THAN_SYSDATE, -9764, -1, "HY000", "the parameter must evaluate to a time in the future", "the parameter %s must evaluate to a time in the future", 23420, "the parameter must evaluate to a time in the future", "the parameter %s must evaluate to a time in the future"); DEFINE_PLS_ERROR_EXT(OB_ERR_NOT_FUNC_NAME, -9765, -1, "HY000", "object 'string' must be of type function or array to be used this way", "object '%.*s' must be of type function or array to be used this way", 224, "object 'string' must be of type function or array to be used this way", "object '%.*s' must be of type function or array to be used this way"); +// 余留位置 //////////////////////////////////////////////////////////////// -//error code for OBKV [-10500, -10700) +// PL/SQL错误码值域 [-9500, -10000) +//!!! -20000/-21000/-32491 should not in here. but we can not remove it now because of compat. ONLY PL SQL ERROR PUT HERE!!! +//////////////////////////////////////////////////////////////// + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////// +// OBKV错误码值域:[-10500, -10700) //////////////////////////////////////////////////////////////// DEFINE_ERROR(OB_ERR_KV_GLOBAL_INDEX_ROUTE, -10500, -1, "HY000", "incorrect route for obkv global index, client router should refresh."); DEFINE_ERROR(OB_TTL_NOT_ENABLE, -10501, -1, "HY000", "TTL feature is not enabled"); @@ -2414,8 +2591,22 @@ DEFINE_ERROR_EXT(OB_KV_COLLATION_MISMATCH, -10512, -1, "HY000", "OBKV collation DEFINE_ERROR_EXT(OB_KV_SCAN_RANGE_MISSING, -10513, -1, "HY000", "OBKV scan range missing", "Scan range missing, input scan range cell count is '%ld', which should equal to rowkey count '%ld'"); DEFINE_ERROR(OB_KV_ODP_TIMEOUT, -10650, -1, "HY000", "ODP process timeout"); +// 余留位置 //////////////////////////////////////////////////////////////// -//error code for SQL [-11000 ---- -12000) +// OBKV错误码值域:[-10500, -10700) +//////////////////////////////////////////////////////////////// + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////// +// SQL扩展区段1:[-11000, -12000) //////////////////////////////////////////////////////////////// DEFINE_ERROR(OB_ERR_VALUES_CLAUSE_NEED_HAVE_COLUMN, -11000, ER_VALUES_CLAUSE_NEED_HAVE_COLUMN, "HY000", "Each row of a VALUES clause must have at least one column, unless when used as source in an INSERT statement."); DEFINE_ERROR(OB_ERR_VALUES_CLAUSE_CANNOT_USE_DEFAULT_VALUES, -11001, ER_VALUES_CLAUSE_CANNOT_USE_DEFAULT_VALUES, "HY000", "A VALUES clause cannot use DEFAULT values, unless used as a source in an INSERT statement."); @@ -2435,20 +2626,25 @@ DEFINE_ERROR_EXT(OB_CANNOT_USER_IF_EXISTS, -11012, ER_CANNOT_USER_IF_EXISTS, "HY DEFINE_ORACLE_ERROR(OB_ERR_ARGUMENT_SHOULD_CONSTANT_OR_GROUP_EXPR, -11010, -1, "HY000", "Argument should be a constant or a function of expressions in GROUP BY.", 30497, "Argument should be a constant or a function of expressions in GROUP BY."); DEFINE_ERROR_EXT(OB_ERR_ILLEGAL_USER_VAR, -11013, ER_ILLEGAL_USER_VAR, "42000", "User variable name is illegal", "User variable name %.*s is illegal"); DEFINE_ERROR(OB_ERR_FT_COLUMN_NOT_INDEXED, -11014, ER_FT_MATCHING_KEY_NOT_FOUND, "HY000", "Can't find FULLTEXT index matching the column list"); + +// 余留位置 //////////////////////////////////////////////////////////////// -// tenant snapshot and tenant clone error codes [-12000 ~ -12100) +// SQL扩展区段1:[-11000, -12000) //////////////////////////////////////////////////////////////// -DEFINE_ERROR_EXT_DEP(OB_TENANT_SNAPSHOT_NOT_EXIST, -12000, -1, "HY000", "Tenant snapshot does not exist", "Tenant snapshot \'%.*s\' does not exist"); -DEFINE_ERROR_EXT_DEP(OB_TENANT_SNAPSHOT_EXIST, -12001, -1, "HY000", "Tenant snapshot already exist", "Tenant snapshot \'%.*s\' already exist"); -DEFINE_ERROR_EXT_DEP(OB_TENANT_SNAPSHOT_TIMEOUT, -12002, -1, "HY000", "Tenant snapshot task timeout", "Tenant snapshot task timeout. %.*s"); -DEFINE_ERROR_EXT_DEP(OB_CLONE_TENANT_TIMEOUT, -12003, -1, "HY000", "Clone tenant timeout", "Clone tenant timeout. %.*s"); -DEFINE_ERROR_EXT_DEP(OB_ERR_CLONE_TENANT, -12004, -1, "HY000", "Tenant clone job failed", "%.*s"); -DEFINE_ERROR_EXT_DEP(OB_ERR_TENANT_SNAPSHOT, -12005, -1, "HY000", "Tenant snapshot task failed", "%.*s"); -DEFINE_ERROR_EXT_DEP(OB_TENANT_SNAPSHOT_LOCK_CONFLICT, -12006, -1, "HY000", "Tenant snapshot lock conflict", "%s"); + +//////////////////////////////////// 新增(占位)须知 //////////////////////////////////// +// 1. 新增错误码需要先在master分支提交,保证master是所有版本的超集,避免出现错误码冲突 +// 2. 不支持以注释方式“占位”错误码,如果要新增错误码,直接提交完整的错误码定义即可 +// 3. 不同的错误码区间有不同含义,请在合理区间内顺序定义错误码。区间定义见文件头。 +// 每个区间内,请在“余留位置”行之前定义新错误码 +// 如果没有合适区间,请联系 @修铭 定义一个新的区间 +// 4. 本文件修改完成后,需要调用gen_errno.pl,生成ob_errno.h文件 +//////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////// // !!! text/blob || clob/blob erro code // for compat we cant not remove this errno!!!! +// 这不是一个正常的区间,不要在这里新增错误码 //////////////////////////////////////////////////////////////// DEFINE_ORACLE_ERROR(OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN, -22998, -1, "HY000", "CLOB or NCLOB in multibyte character set not supported", 22998, "CLOB or NCLOB in multibyte character set not supported"); DEFINE_ORACLE_ERROR_EXT(OB_ERR_UPDATE_ON_EXPR, -38104, -1, "HY000", "Columns referenced in the ON Clause cannot be updated", "Columns referenced in the ON Clause cannot be updated:'%.*s'.'%.*s'", 38104, "Columns referenced in the ON Clause cannot be updated", "Columns referenced in the ON Clause cannot be updated:'%.*s'.'%.*s'"); diff --git a/src/share/ob_errno.h b/src/share/ob_errno.h index 10b72624a3..767988035a 100644 --- a/src/share/ob_errno.h +++ b/src/share/ob_errno.h @@ -3766,6 +3766,13 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219; #define OB_TOO_MANY_OPEN_FILES__USER_ERROR_MSG "too many open files" #define OB_DIRECT_LOAD_COMMIT_ERROR__USER_ERROR_MSG "fail to commit direct load" #define OB_S3_ERROR__USER_ERROR_MSG "S3 error" +#define OB_TENANT_SNAPSHOT_NOT_EXIST__USER_ERROR_MSG "Tenant snapshot \'%.*s\' does not exist" +#define OB_TENANT_SNAPSHOT_EXIST__USER_ERROR_MSG "Tenant snapshot \'%.*s\' already exist" +#define OB_TENANT_SNAPSHOT_TIMEOUT__USER_ERROR_MSG "Tenant snapshot task timeout. %.*s" +#define OB_CLONE_TENANT_TIMEOUT__USER_ERROR_MSG "Clone tenant timeout. %.*s" +#define OB_ERR_CLONE_TENANT__USER_ERROR_MSG "%.*s" +#define OB_ERR_TENANT_SNAPSHOT__USER_ERROR_MSG "%.*s" +#define OB_TENANT_SNAPSHOT_LOCK_CONFLICT__USER_ERROR_MSG "%s" #define OB_ERR_RESIZE_FILE_TO_SMALLER__USER_ERROR_MSG "Extend ssblock file to smaller is not allowed" #define OB_MARK_BLOCK_INFO_TIMEOUT__USER_ERROR_MSG "Mark blocks timeout(5s) in auto extend process when alloc block fail" #define OB_NOT_READY_TO_EXTEND_FILE__USER_ERROR_MSG "Auto extend param is not ready to start extending file" @@ -4062,13 +4069,6 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219; #define OB_CANNOT_USER_IF_EXISTS__USER_ERROR_MSG "User %.*s does not exist" #define OB_ERR_ILLEGAL_USER_VAR__USER_ERROR_MSG "User variable name %.*s is illegal" #define OB_ERR_FT_COLUMN_NOT_INDEXED__USER_ERROR_MSG "Can't find FULLTEXT index matching the column list" -#define OB_TENANT_SNAPSHOT_NOT_EXIST__USER_ERROR_MSG "Tenant snapshot \'%.*s\' does not exist" -#define OB_TENANT_SNAPSHOT_EXIST__USER_ERROR_MSG "Tenant snapshot \'%.*s\' already exist" -#define OB_TENANT_SNAPSHOT_TIMEOUT__USER_ERROR_MSG "Tenant snapshot task timeout. %.*s" -#define OB_CLONE_TENANT_TIMEOUT__USER_ERROR_MSG "Clone tenant timeout. %.*s" -#define OB_ERR_CLONE_TENANT__USER_ERROR_MSG "%.*s" -#define OB_ERR_TENANT_SNAPSHOT__USER_ERROR_MSG "%.*s" -#define OB_TENANT_SNAPSHOT_LOCK_CONFLICT__USER_ERROR_MSG "%s" #define OB_SP_RAISE_APPLICATION_ERROR__USER_ERROR_MSG "%.*s" #define OB_SP_RAISE_APPLICATION_ERROR_NUM__USER_ERROR_MSG "error number argument to raise_application_error of '%d' is out of range" #define OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN__USER_ERROR_MSG "CLOB or NCLOB in multibyte character set not supported" @@ -5987,6 +5987,13 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219; #define OB_TOO_MANY_OPEN_FILES__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9103, too many open files" #define OB_DIRECT_LOAD_COMMIT_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9104, fail to commit direct load" #define OB_S3_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9105, S3 error" +#define OB_TENANT_SNAPSHOT_NOT_EXIST__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9106, Tenant snapshot \'%.*s\' does not exist" +#define OB_TENANT_SNAPSHOT_EXIST__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9107, Tenant snapshot \'%.*s\' already exist" +#define OB_TENANT_SNAPSHOT_TIMEOUT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9108, Tenant snapshot task timeout. %.*s" +#define OB_CLONE_TENANT_TIMEOUT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9109, Clone tenant timeout. %.*s" +#define OB_ERR_CLONE_TENANT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9110, %.*s" +#define OB_ERR_TENANT_SNAPSHOT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9111, %.*s" +#define OB_TENANT_SNAPSHOT_LOCK_CONFLICT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9112, %s" #define OB_ERR_RESIZE_FILE_TO_SMALLER__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9200, Extend ssblock file to smaller is not allowed" #define OB_MARK_BLOCK_INFO_TIMEOUT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9201, Mark blocks timeout(5s) in auto extend process when alloc block fail" #define OB_NOT_READY_TO_EXTEND_FILE__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9202, Auto extend param is not ready to start extending file" @@ -6283,13 +6290,6 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219; #define OB_CANNOT_USER_IF_EXISTS__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11012, User %.*s does not exist" #define OB_ERR_ILLEGAL_USER_VAR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11013, User variable name %.*s is illegal" #define OB_ERR_FT_COLUMN_NOT_INDEXED__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11014, Can't find FULLTEXT index matching the column list" -#define OB_TENANT_SNAPSHOT_NOT_EXIST__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -12000, Tenant snapshot \'%.*s\' does not exist" -#define OB_TENANT_SNAPSHOT_EXIST__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -12001, Tenant snapshot \'%.*s\' already exist" -#define OB_TENANT_SNAPSHOT_TIMEOUT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -12002, Tenant snapshot task timeout. %.*s" -#define OB_CLONE_TENANT_TIMEOUT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -12003, Clone tenant timeout. %.*s" -#define OB_ERR_CLONE_TENANT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -12004, %.*s" -#define OB_ERR_TENANT_SNAPSHOT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -12005, %.*s" -#define OB_TENANT_SNAPSHOT_LOCK_CONFLICT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -12006, %s" #define OB_SP_RAISE_APPLICATION_ERROR__ORA_USER_ERROR_MSG "ORA%06ld: %.*s" #define OB_SP_RAISE_APPLICATION_ERROR_NUM__ORA_USER_ERROR_MSG "ORA-21000: error number argument to raise_application_error of '%d' is out of range" #define OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN__ORA_USER_ERROR_MSG "ORA-22998: CLOB or NCLOB in multibyte character set not supported"