diff --git a/CMakeLists.txt b/CMakeLists.txt index a55e05ec331697c29be376008dbf391b7937d1e4..50f3f2c87c85486b58e55965ee1626a17d595a2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ include(cmake/Utils.cmake) include(cmake/Env.cmake) project("OceanBase CE" - VERSION 3.1.3 + VERSION 3.1.4 DESCRIPTION "OceanBase distributed database system" HOMEPAGE_URL "https://open.oceanbase.com/" LANGUAGES CXX C ASM) diff --git a/cmake/RPM.cmake b/cmake/RPM.cmake index a66a685470a3d137c41e68256b95b4fe8e33e06a..b536153ccdbac4543f155616bd209664005cd7e5 100644 --- a/cmake/RPM.cmake +++ b/cmake/RPM.cmake @@ -17,10 +17,10 @@ list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/home/admin/oceanbase set(CPACK_PACKAGE_NAME "oceanbase-ce") set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OceanBase CE is a distributed relational database") set(CPACK_PACKAGE_VENDOR "Ant Group CO., Ltd.") -set(CPACK_PACKAGE_VERSION 3.1.3) +set(CPACK_PACKAGE_VERSION 3.1.4) set(CPACK_PACKAGE_VERSION_MAJOR 3) set(CPACK_PACKAGE_VERSION_MINOR 1) -set(CPACK_PACKAGE_VERSION_PATCH 3) +set(CPACK_PACKAGE_VERSION_PATCH 4) set(CPACK_RPM_PACKAGE_GROUP "Applications/Databases") set(CPACK_RPM_PACKAGE_URL "https://open.oceanbase.com") set(CPACK_RPM_PACKAGE_DESCRIPTION "OceanBase CE is a distributed relational database") diff --git a/src/share/ob_cluster_version.h b/src/share/ob_cluster_version.h index cea0ad96eecde2aefc0368f5bb8430f5d6a0555f..8e86f24693370ba85f210bbb256ecaf3ec3e41dd 100644 --- a/src/share/ob_cluster_version.h +++ b/src/share/ob_cluster_version.h @@ -95,11 +95,12 @@ uint64_t cal_version(const uint64_t major, const uint64_t minor, const uint64_t #define CLUSTER_VERSION_311 (oceanbase::common::cal_version(3, 1, 1)) #define CLUSTER_VERSION_312 (oceanbase::common::cal_version(3, 1, 2)) #define CLUSTER_VERSION_313 (oceanbase::common::cal_version(3, 1, 3)) +#define CLUSTER_VERSION_314 (oceanbase::common::cal_version(3, 1, 4)) #define CLUSTER_VERSION_MAX UINT64_MAX // FIXME If you update the above version, please update me, CLUSTER_CURRENT_VERSION & ObUpgradeChecker!!!!!! //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -#define CLUSTER_CURRENT_VERSION CLUSTER_VERSION_313 +#define CLUSTER_CURRENT_VERSION CLUSTER_VERSION_314 #define GET_MIN_CLUSTER_VERSION() (oceanbase::common::ObClusterVersion::get_instance().get_cluster_version()) #define GET_UNIS_CLUSTER_VERSION() (::oceanbase::lib::get_unis_compat_version() ?: GET_MIN_CLUSTER_VERSION()) diff --git a/src/share/ob_upgrade_utils.cpp b/src/share/ob_upgrade_utils.cpp index 0aeeb973bd74b728266cf460432b2b7f771a9591..7f97de03c3f51d7168fef9e65647b2958fb12cd8 100644 --- a/src/share/ob_upgrade_utils.cpp +++ b/src/share/ob_upgrade_utils.cpp @@ -32,7 +32,8 @@ namespace share { const uint64_t ObUpgradeChecker::UPGRADE_PATH[CLUTER_VERSION_NUM] = { CALC_CLUSTER_VERSION(3UL, 1UL, 1UL), //3.1.1 CALC_CLUSTER_VERSION(3UL, 1UL, 2UL), //3.1.2 - CALC_CLUSTER_VERSION(3UL, 1UL, 3UL) //3.1.3 + CALC_CLUSTER_VERSION(3UL, 1UL, 3UL), //3.1.3 + CALC_CLUSTER_VERSION(3UL, 1UL, 4UL) //3.1.4 }; bool ObUpgradeChecker::check_cluster_version_exist(const uint64_t version) @@ -1090,6 +1091,7 @@ int ObUpgradeProcesserSet::init(ObBaseUpgradeProcessor::UpgradeMode mode, common INIT_PROCESSOR_BY_VERSION(3, 1, 1); INIT_PROCESSOR_BY_VERSION(3, 1, 2); INIT_PROCESSOR_BY_VERSION(3, 1, 3); + INIT_PROCESSOR_BY_VERSION(3, 1, 4); #undef INIT_PROCESSOR_BY_VERSION inited_ = true; } diff --git a/src/share/ob_upgrade_utils.h b/src/share/ob_upgrade_utils.h index d8580d1c8a8aea58a311e0bf799e196e010ebdf9..468719d12502d089dca2fb8ceb8560c28077a148 100644 --- a/src/share/ob_upgrade_utils.h +++ b/src/share/ob_upgrade_utils.h @@ -181,7 +181,7 @@ public: static bool check_cluster_version_exist(const uint64_t version); public: - static const int64_t CLUTER_VERSION_NUM = 3; + static const int64_t CLUTER_VERSION_NUM = 4; static const uint64_t UPGRADE_PATH[CLUTER_VERSION_NUM]; }; @@ -233,6 +233,7 @@ DEF_SIMPLE_UPGRARD_PROCESSER(3, 1, 0); DEF_SIMPLE_UPGRARD_PROCESSER(3, 1, 1); DEF_SIMPLE_UPGRARD_PROCESSER(3, 1, 2); DEF_SIMPLE_UPGRARD_PROCESSER(3, 1, 3); +DEF_SIMPLE_UPGRARD_PROCESSER(3, 1, 4); /* =========== upgrade processor end ============= */ diff --git a/src/share/parameter/ob_parameter_seed.ipp b/src/share/parameter/ob_parameter_seed.ipp index 3befc5a95041bede210cf31df07081969e99371c..a2d2eee915805e09d483f31bc71db19e732f0fda 100644 --- a/src/share/parameter/ob_parameter_seed.ipp +++ b/src/share/parameter/ob_parameter_seed.ipp @@ -528,7 +528,7 @@ DEF_TIME(get_leader_candidate_rpc_timeout, OB_CLUSTER_PARAMETER, "9s", "[2s, 180 "the time during a get leader candidate rpc request " "is permitted to execute before it is terminated. Range: [2s, 180s]", ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE)); -DEF_STR(min_observer_version, OB_CLUSTER_PARAMETER, "3.1.3", "the min observer version", +DEF_STR(min_observer_version, OB_CLUSTER_PARAMETER, "3.1.4", "the min observer version", ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE)); DEF_BOOL(enable_ddl, OB_CLUSTER_PARAMETER, "True", "specifies whether DDL operation is turned on. " diff --git a/tools/upgrade/oceanbase_upgrade_dep.yml b/tools/upgrade/oceanbase_upgrade_dep.yml index 453ba3bbccbedec72ab2922858785f522dcc3f69..b036e3dd84580988baabe10d8630105772d14858 100644 --- a/tools/upgrade/oceanbase_upgrade_dep.yml +++ b/tools/upgrade/oceanbase_upgrade_dep.yml @@ -26,3 +26,6 @@ - version: 3.1.3 can_be_upgraded_to: - 3.1.4 +- version: 3.1.4 + can_be_upgraded_to: + - 3.1.5 diff --git a/tools/upgrade/special_upgrade_action_post.py b/tools/upgrade/special_upgrade_action_post.py index b0aa2b523c25d75d72997325493b2a03abc650e1..9cbe1dcb989e9064c824717823e10e5a3322a761 100755 --- a/tools/upgrade/special_upgrade_action_post.py +++ b/tools/upgrade/special_upgrade_action_post.py @@ -17,7 +17,7 @@ def do_special_upgrade(conn, cur, tenant_id_list, user, pwd): #因为基准版本更新的时候会调用reset_upgrade_scripts.py来清空actions begin和actions end #这两行之间的这些代码,如果不写在这两行之间的话会导致清空不掉相应的代码。 ####========******####======== actions begin ========####******========#### - run_upgrade_job(conn, cur, "3.1.3") + run_upgrade_job(conn, cur, "3.1.4") return ####========******####========= actions end =========####******========#### diff --git a/tools/upgrade/upgrade_post.py b/tools/upgrade/upgrade_post.py index a199ac63b6ba6d666412e55a5540804aaf36ed7f..97c098a01758aa59b720a16594f2c93b7c3925d0 100755 --- a/tools/upgrade/upgrade_post.py +++ b/tools/upgrade/upgrade_post.py @@ -6396,7 +6396,7 @@ ##因为基准版本更新的时候会调用reset_upgrade_scripts.py来清空actions begin和actions end ##这两行之间的这些代码,如果不写在这两行之间的话会导致清空不掉相应的代码。 #####========******####======== actions begin ========####******========#### -# run_upgrade_job(conn, cur, "3.1.3") +# run_upgrade_job(conn, cur, "3.1.4") # return #####========******####========= actions end =========####******========#### # @@ -8686,7 +8686,7 @@ # #class UpgradeParams: # log_filename = 'upgrade_post_checker.log' -# new_version = '3.1.3' +# new_version = '3.1.4' ##### --------------start : my_error.py -------------- #class MyError(Exception): # def __init__(self, value): diff --git a/tools/upgrade/upgrade_post_checker.py b/tools/upgrade/upgrade_post_checker.py index 5c4995ad790f62744e97dc326011323217716036..8ab675674bd45d1e91febd3eb8eb6852305bcb85 100755 --- a/tools/upgrade/upgrade_post_checker.py +++ b/tools/upgrade/upgrade_post_checker.py @@ -12,7 +12,7 @@ import time class UpgradeParams: log_filename = 'upgrade_post_checker.log' - new_version = '3.1.3' + new_version = '3.1.4' #### --------------start : my_error.py -------------- class MyError(Exception): def __init__(self, value): diff --git a/tools/upgrade/upgrade_pre.py b/tools/upgrade/upgrade_pre.py index 80708f8c6318e930e330ac09de2fe2900accea84..39f26b6c3ee9a5af8c06fc62c21a52070c1eecee 100755 --- a/tools/upgrade/upgrade_pre.py +++ b/tools/upgrade/upgrade_pre.py @@ -6396,7 +6396,7 @@ ##因为基准版本更新的时候会调用reset_upgrade_scripts.py来清空actions begin和actions end ##这两行之间的这些代码,如果不写在这两行之间的话会导致清空不掉相应的代码。 #####========******####======== actions begin ========####******========#### -# run_upgrade_job(conn, cur, "3.1.3") +# run_upgrade_job(conn, cur, "3.1.4") # return #####========******####========= actions end =========####******========#### # @@ -8686,7 +8686,7 @@ # #class UpgradeParams: # log_filename = 'upgrade_post_checker.log' -# new_version = '3.1.3' +# new_version = '3.1.4' ##### --------------start : my_error.py -------------- #class MyError(Exception): # def __init__(self, value):