diff --git a/CMakeLists.txt b/CMakeLists.txt index 1df2f20fc..22da75bf1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,14 +5,14 @@ include(cmake/Env.cmake) if(OB_BUILD_OPENSOURCE) project("OceanBase_CE" - VERSION 4.3.0.1 + VERSION 4.3.1.0 DESCRIPTION "OceanBase distributed database system" HOMEPAGE_URL "https://open.oceanbase.com/" LANGUAGES CXX C ASM) message(STATUS "open source build enabled") else() project(OceanBase - VERSION 4.3.0.1 + VERSION 4.3.1.0 DESCRIPTION "OceanBase distributed database system" HOMEPAGE_URL "https://www.oceanbase.com/" LANGUAGES CXX C ASM) diff --git a/rpm/oceanbase.spec b/rpm/oceanbase.spec index d6717af08..ddd9c47bf 100644 --- a/rpm/oceanbase.spec +++ b/rpm/oceanbase.spec @@ -1,4 +1,4 @@ Name: %NAME -Version:4.3.0.1 +Version:4.3.1.0 Release: %RELEASE BuildRequires: binutils = 2.30 diff --git a/src/share/ob_cluster_version.h b/src/share/ob_cluster_version.h index 045f4d751..1cd513f75 100644 --- a/src/share/ob_cluster_version.h +++ b/src/share/ob_cluster_version.h @@ -180,9 +180,11 @@ cal_version(const uint64_t major, const uint64_t minor, const uint64_t major_pat // new data version before 4.3 cannot upgrade to master, must add "MOCK_" prefix #define CLUSTER_VERSION_4_3_0_0 (oceanbase::common::cal_version(4, 3, 0, 0)) #define CLUSTER_VERSION_4_3_0_1 (oceanbase::common::cal_version(4, 3, 0, 1)) +#define CLUSTER_VERSION_4_3_1_0 (oceanbase::common::cal_version(4, 3, 1, 0)) + //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //TODO: If you update the above version, please update CLUSTER_CURRENT_VERSION. -#define CLUSTER_CURRENT_VERSION CLUSTER_VERSION_4_3_0_1 +#define CLUSTER_CURRENT_VERSION CLUSTER_VERSION_4_3_1_0 #define GET_MIN_CLUSTER_VERSION() (oceanbase::common::ObClusterVersion::get_instance().get_cluster_version()) #define IS_CLUSTER_VERSION_BEFORE_4_1_0_0 (oceanbase::common::ObClusterVersion::get_instance().get_cluster_version() < CLUSTER_VERSION_4_1_0_0) @@ -208,8 +210,9 @@ cal_version(const uint64_t major, const uint64_t minor, const uint64_t major_pat // new data version before 4.3 cannot upgrade to master, must add "MOCK_" prefix #define DATA_VERSION_4_3_0_0 (oceanbase::common::cal_version(4, 3, 0, 0)) #define DATA_VERSION_4_3_0_1 (oceanbase::common::cal_version(4, 3, 0, 1)) +#define DATA_VERSION_4_3_1_0 (oceanbase::common::cal_version(4, 3, 1, 0)) -#define DATA_CURRENT_VERSION DATA_VERSION_4_3_0_1 +#define DATA_CURRENT_VERSION DATA_VERSION_4_3_1_0 // ATTENSION !!!!!!!!!!!!!!!!!!!!!!!!!!! // LAST_BARRIER_DATA_VERSION should be the latest barrier data version before DATA_CURRENT_VERSION #define LAST_BARRIER_DATA_VERSION DATA_VERSION_4_2_1_0 diff --git a/src/share/ob_upgrade_utils.cpp b/src/share/ob_upgrade_utils.cpp index 7ed5c2d7d..f9098e92a 100755 --- a/src/share/ob_upgrade_utils.cpp +++ b/src/share/ob_upgrade_utils.cpp @@ -51,6 +51,7 @@ const uint64_t ObUpgradeChecker::UPGRADE_PATH[] = { CALC_VERSION(4UL, 2UL, 3UL, 0UL), // 4.2.3.0 CALC_VERSION(4UL, 3UL, 0UL, 0UL), // 4.3.0.0 CALC_VERSION(4UL, 3UL, 0UL, 1UL), // 4.3.0.1 + CALC_VERSION(4UL, 3UL, 1UL, 0UL), // 4.3.1.0 }; int ObUpgradeChecker::get_data_version_by_cluster_version( @@ -77,6 +78,7 @@ int ObUpgradeChecker::get_data_version_by_cluster_version( CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(MOCK_CLUSTER_VERSION_4_2_3_0, MOCK_DATA_VERSION_4_2_3_0) CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_3_0_0, DATA_VERSION_4_3_0_0) CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_3_0_1, DATA_VERSION_4_3_0_1) + CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_3_1_0, DATA_VERSION_4_3_1_0) #undef CONVERT_CLUSTER_VERSION_TO_DATA_VERSION default: { ret = OB_INVALID_ARGUMENT; @@ -642,6 +644,7 @@ int ObUpgradeProcesserSet::init( INIT_PROCESSOR_BY_VERSION(4, 2, 3, 0); INIT_PROCESSOR_BY_VERSION(4, 3, 0, 0); INIT_PROCESSOR_BY_VERSION(4, 3, 0, 1); + INIT_PROCESSOR_BY_VERSION(4, 3, 1, 0); #undef INIT_PROCESSOR_BY_VERSION inited_ = true; } diff --git a/src/share/ob_upgrade_utils.h b/src/share/ob_upgrade_utils.h index 5fea4741a..28b881ac8 100755 --- a/src/share/ob_upgrade_utils.h +++ b/src/share/ob_upgrade_utils.h @@ -170,7 +170,7 @@ public: const uint64_t cluster_version, uint64_t &data_version); public: - static const int64_t DATA_VERSION_NUM = 13; + static const int64_t DATA_VERSION_NUM = 14; static const uint64_t UPGRADE_PATH[]; }; @@ -227,6 +227,7 @@ DEF_SIMPLE_UPGRARD_PROCESSER(4, 2, 2, 1) DEF_SIMPLE_UPGRARD_PROCESSER(4, 2, 3, 0) DEF_SIMPLE_UPGRARD_PROCESSER(4, 3, 0, 0) DEF_SIMPLE_UPGRARD_PROCESSER(4, 3, 0, 1) +DEF_SIMPLE_UPGRARD_PROCESSER(4, 3, 1, 0) /* =========== special upgrade processor end ============= */ /* =========== upgrade processor end ============= */ diff --git a/src/share/parameter/ob_parameter_seed.ipp b/src/share/parameter/ob_parameter_seed.ipp index fdb219a7c..81e0fac8d 100644 --- a/src/share/parameter/ob_parameter_seed.ipp +++ b/src/share/parameter/ob_parameter_seed.ipp @@ -539,9 +539,9 @@ DEF_TIME(tablet_meta_table_check_interval, OB_CLUSTER_PARAMETER, "30m", "[1m,)", "the time interval that observer compares tablet meta table with local ls replica info " "and make adjustments to ensure the correctness of tablet meta table. Range: [1m,+∞)", ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE)); -DEF_STR(min_observer_version, OB_CLUSTER_PARAMETER, "4.3.0.1", "the min observer version", +DEF_STR(min_observer_version, OB_CLUSTER_PARAMETER, "4.3.1.0", "the min observer version", ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE)); -DEF_VERSION(compatible, OB_TENANT_PARAMETER, "4.3.0.1", "compatible version for persisted data", +DEF_VERSION(compatible, OB_TENANT_PARAMETER, "4.3.1.0", "compatible version for persisted data", ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE)); DEF_BOOL(enable_ddl, OB_CLUSTER_PARAMETER, "True", "specifies whether DDL operation is turned on. " "Value: True:turned on; False: turned off", diff --git a/tools/upgrade/actions.py b/tools/upgrade/actions.py index cc09aba52..754867e62 100755 --- a/tools/upgrade/actions.py +++ b/tools/upgrade/actions.py @@ -18,8 +18,8 @@ class SqlItem: self.action_sql = action_sql self.rollback_sql = rollback_sql -current_cluster_version = "4.3.0.1" -current_data_version = "4.3.0.1" +current_cluster_version = "4.3.1.0" +current_data_version = "4.3.1.0" g_succ_sql_list = [] g_commit_sql_list = [] diff --git a/tools/upgrade/oceanbase_upgrade_dep.yml b/tools/upgrade/oceanbase_upgrade_dep.yml index 81c879ca8..c49b859e2 100644 --- a/tools/upgrade/oceanbase_upgrade_dep.yml +++ b/tools/upgrade/oceanbase_upgrade_dep.yml @@ -73,3 +73,7 @@ - 4.3.0.1 - version: 4.3.0.1 + can_be_upgraded_to: + - 4.3.1.0 + +- version: 4.3.1.0 diff --git a/tools/upgrade/upgrade_post.py b/tools/upgrade/upgrade_post.py index c621999bc..d219cc2d2 100755 --- a/tools/upgrade/upgrade_post.py +++ b/tools/upgrade/upgrade_post.py @@ -26,8 +26,8 @@ # self.action_sql = action_sql # self.rollback_sql = rollback_sql # -#current_cluster_version = "4.3.0.1" -#current_data_version = "4.3.0.1" +#current_cluster_version = "4.3.1.0" +#current_data_version = "4.3.1.0" #g_succ_sql_list = [] #g_commit_sql_list = [] # diff --git a/tools/upgrade/upgrade_pre.py b/tools/upgrade/upgrade_pre.py index 4edf9da23..fe814e706 100755 --- a/tools/upgrade/upgrade_pre.py +++ b/tools/upgrade/upgrade_pre.py @@ -26,8 +26,8 @@ # self.action_sql = action_sql # self.rollback_sql = rollback_sql # -#current_cluster_version = "4.3.0.1" -#current_data_version = "4.3.0.1" +#current_cluster_version = "4.3.1.0" +#current_data_version = "4.3.1.0" #g_succ_sql_list = [] #g_commit_sql_list = [] #