[UPGRADE] Upgrade version to 4.3.0.0
This commit is contained in:
@ -5,14 +5,14 @@ include(cmake/Env.cmake)
|
|||||||
|
|
||||||
if(OB_BUILD_OPENSOURCE)
|
if(OB_BUILD_OPENSOURCE)
|
||||||
project("OceanBase_CE"
|
project("OceanBase_CE"
|
||||||
VERSION 4.2.1.0
|
VERSION 4.3.0.0
|
||||||
DESCRIPTION "OceanBase distributed database system"
|
DESCRIPTION "OceanBase distributed database system"
|
||||||
HOMEPAGE_URL "https://open.oceanbase.com/"
|
HOMEPAGE_URL "https://open.oceanbase.com/"
|
||||||
LANGUAGES CXX C ASM)
|
LANGUAGES CXX C ASM)
|
||||||
message(STATUS "open source build enabled")
|
message(STATUS "open source build enabled")
|
||||||
else()
|
else()
|
||||||
project(OceanBase
|
project(OceanBase
|
||||||
VERSION 4.2.1.0
|
VERSION 4.3.0.0
|
||||||
DESCRIPTION "OceanBase distributed database system"
|
DESCRIPTION "OceanBase distributed database system"
|
||||||
HOMEPAGE_URL "https://www.oceanbase.com/"
|
HOMEPAGE_URL "https://www.oceanbase.com/"
|
||||||
LANGUAGES CXX C ASM)
|
LANGUAGES CXX C ASM)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Name: %NAME
|
Name: %NAME
|
||||||
Version:4.2.1.0
|
Version:4.3.0.0
|
||||||
Release: %RELEASE
|
Release: %RELEASE
|
||||||
BuildRequires: binutils = 2.30
|
BuildRequires: binutils = 2.30
|
||||||
|
@ -170,9 +170,11 @@ cal_version(const uint64_t major, const uint64_t minor, const uint64_t major_pat
|
|||||||
#define CLUSTER_VERSION_4_1_0_2 (oceanbase::common::cal_version(4, 1, 0, 2))
|
#define CLUSTER_VERSION_4_1_0_2 (oceanbase::common::cal_version(4, 1, 0, 2))
|
||||||
#define CLUSTER_VERSION_4_2_0_0 (oceanbase::common::cal_version(4, 2, 0, 0))
|
#define CLUSTER_VERSION_4_2_0_0 (oceanbase::common::cal_version(4, 2, 0, 0))
|
||||||
#define CLUSTER_VERSION_4_2_1_0 (oceanbase::common::cal_version(4, 2, 1, 0))
|
#define CLUSTER_VERSION_4_2_1_0 (oceanbase::common::cal_version(4, 2, 1, 0))
|
||||||
|
#define CLUSTER_VERSION_4_2_2_0 (oceanbase::common::cal_version(4, 2, 2, 0))
|
||||||
|
#define CLUSTER_VERSION_4_3_0_0 (oceanbase::common::cal_version(4, 3, 0, 0))
|
||||||
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
//TODO: If you update the above version, please update CLUSTER_CURRENT_VERSION.
|
//TODO: If you update the above version, please update CLUSTER_CURRENT_VERSION.
|
||||||
#define CLUSTER_CURRENT_VERSION CLUSTER_VERSION_4_2_1_0
|
#define CLUSTER_CURRENT_VERSION CLUSTER_VERSION_4_3_0_0
|
||||||
#define GET_MIN_CLUSTER_VERSION() (oceanbase::common::ObClusterVersion::get_instance().get_cluster_version())
|
#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)
|
#define IS_CLUSTER_VERSION_BEFORE_4_1_0_0 (oceanbase::common::ObClusterVersion::get_instance().get_cluster_version() < CLUSTER_VERSION_4_1_0_0)
|
||||||
@ -187,8 +189,10 @@ cal_version(const uint64_t major, const uint64_t minor, const uint64_t major_pat
|
|||||||
#define DATA_VERSION_4_1_0_2 (oceanbase::common::cal_version(4, 1, 0, 2))
|
#define DATA_VERSION_4_1_0_2 (oceanbase::common::cal_version(4, 1, 0, 2))
|
||||||
#define DATA_VERSION_4_2_0_0 (oceanbase::common::cal_version(4, 2, 0, 0))
|
#define DATA_VERSION_4_2_0_0 (oceanbase::common::cal_version(4, 2, 0, 0))
|
||||||
#define DATA_VERSION_4_2_1_0 (oceanbase::common::cal_version(4, 2, 1, 0))
|
#define DATA_VERSION_4_2_1_0 (oceanbase::common::cal_version(4, 2, 1, 0))
|
||||||
|
#define DATA_VERSION_4_2_2_0 (oceanbase::common::cal_version(4, 2, 2, 0))
|
||||||
|
#define DATA_VERSION_4_3_0_0 (oceanbase::common::cal_version(4, 3, 0, 0))
|
||||||
|
|
||||||
#define DATA_CURRENT_VERSION DATA_VERSION_4_2_1_0
|
#define DATA_CURRENT_VERSION DATA_VERSION_4_3_0_0
|
||||||
// ATTENSION !!!!!!!!!!!!!!!!!!!!!!!!!!!
|
// ATTENSION !!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
// LAST_BARRIER_DATA_VERSION should be the latest barrier data version before DATA_CURRENT_VERSION
|
// LAST_BARRIER_DATA_VERSION should be the latest barrier data version before DATA_CURRENT_VERSION
|
||||||
#define LAST_BARRIER_DATA_VERSION DATA_VERSION_4_1_0_0
|
#define LAST_BARRIER_DATA_VERSION DATA_VERSION_4_1_0_0
|
||||||
|
@ -43,7 +43,9 @@ const uint64_t ObUpgradeChecker::UPGRADE_PATH[DATA_VERSION_NUM] = {
|
|||||||
CALC_VERSION(4UL, 1UL, 0UL, 1UL), // 4.1.0.1
|
CALC_VERSION(4UL, 1UL, 0UL, 1UL), // 4.1.0.1
|
||||||
CALC_VERSION(4UL, 1UL, 0UL, 2UL), // 4.1.0.2
|
CALC_VERSION(4UL, 1UL, 0UL, 2UL), // 4.1.0.2
|
||||||
CALC_VERSION(4UL, 2UL, 0UL, 0UL), // 4.2.0.0
|
CALC_VERSION(4UL, 2UL, 0UL, 0UL), // 4.2.0.0
|
||||||
CALC_VERSION(4UL, 2UL, 1UL, 0UL) // 4.2.1.0
|
CALC_VERSION(4UL, 2UL, 1UL, 0UL), // 4.2.1.0
|
||||||
|
CALC_VERSION(4UL, 2UL, 2UL, 0UL), // 4.2.2.0
|
||||||
|
CALC_VERSION(4UL, 3UL, 0UL, 0UL) // 4.3.0.0
|
||||||
};
|
};
|
||||||
|
|
||||||
int ObUpgradeChecker::get_data_version_by_cluster_version(
|
int ObUpgradeChecker::get_data_version_by_cluster_version(
|
||||||
@ -63,6 +65,8 @@ int ObUpgradeChecker::get_data_version_by_cluster_version(
|
|||||||
CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_1_0_2, DATA_VERSION_4_1_0_2)
|
CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_1_0_2, DATA_VERSION_4_1_0_2)
|
||||||
CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_2_0_0, DATA_VERSION_4_2_0_0)
|
CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_2_0_0, DATA_VERSION_4_2_0_0)
|
||||||
CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_2_1_0, DATA_VERSION_4_2_1_0)
|
CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_2_1_0, DATA_VERSION_4_2_1_0)
|
||||||
|
CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_2_2_0, DATA_VERSION_4_2_2_0)
|
||||||
|
CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_3_0_0, DATA_VERSION_4_3_0_0)
|
||||||
#undef CONVERT_CLUSTER_VERSION_TO_DATA_VERSION
|
#undef CONVERT_CLUSTER_VERSION_TO_DATA_VERSION
|
||||||
default: {
|
default: {
|
||||||
ret = OB_INVALID_ARGUMENT;
|
ret = OB_INVALID_ARGUMENT;
|
||||||
@ -621,6 +625,8 @@ int ObUpgradeProcesserSet::init(
|
|||||||
INIT_PROCESSOR_BY_VERSION(4, 1, 0, 2);
|
INIT_PROCESSOR_BY_VERSION(4, 1, 0, 2);
|
||||||
INIT_PROCESSOR_BY_VERSION(4, 2, 0, 0);
|
INIT_PROCESSOR_BY_VERSION(4, 2, 0, 0);
|
||||||
INIT_PROCESSOR_BY_VERSION(4, 2, 1, 0);
|
INIT_PROCESSOR_BY_VERSION(4, 2, 1, 0);
|
||||||
|
INIT_PROCESSOR_BY_VERSION(4, 2, 2, 0);
|
||||||
|
INIT_PROCESSOR_BY_VERSION(4, 3, 0, 0);
|
||||||
#undef INIT_PROCESSOR_BY_VERSION
|
#undef INIT_PROCESSOR_BY_VERSION
|
||||||
inited_ = true;
|
inited_ = true;
|
||||||
}
|
}
|
||||||
|
@ -170,7 +170,7 @@ public:
|
|||||||
const uint64_t cluster_version,
|
const uint64_t cluster_version,
|
||||||
uint64_t &data_version);
|
uint64_t &data_version);
|
||||||
public:
|
public:
|
||||||
static const int64_t DATA_VERSION_NUM = 6;
|
static const int64_t DATA_VERSION_NUM = 8;
|
||||||
static const uint64_t UPGRADE_PATH[DATA_VERSION_NUM];
|
static const uint64_t UPGRADE_PATH[DATA_VERSION_NUM];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -210,6 +210,8 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
DEF_SIMPLE_UPGRARD_PROCESSER(4, 2, 1, 0)
|
DEF_SIMPLE_UPGRARD_PROCESSER(4, 2, 1, 0)
|
||||||
|
DEF_SIMPLE_UPGRARD_PROCESSER(4, 2, 2, 0)
|
||||||
|
DEF_SIMPLE_UPGRARD_PROCESSER(4, 3, 0, 0)
|
||||||
/* =========== special upgrade processor end ============= */
|
/* =========== special upgrade processor end ============= */
|
||||||
|
|
||||||
/* =========== upgrade processor end ============= */
|
/* =========== upgrade processor end ============= */
|
||||||
|
@ -483,9 +483,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 "
|
"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,+∞)",
|
"and make adjustments to ensure the correctness of tablet meta table. Range: [1m,+∞)",
|
||||||
ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
||||||
DEF_STR(min_observer_version, OB_CLUSTER_PARAMETER, "4.2.1.0", "the min observer version",
|
DEF_STR(min_observer_version, OB_CLUSTER_PARAMETER, "4.3.0.0", "the min observer version",
|
||||||
ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
||||||
DEF_VERSION(compatible, OB_TENANT_PARAMETER, "4.2.1.0", "compatible version for persisted data",
|
DEF_VERSION(compatible, OB_TENANT_PARAMETER, "4.3.0.0", "compatible version for persisted data",
|
||||||
ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
||||||
DEF_BOOL(enable_ddl, OB_CLUSTER_PARAMETER, "True", "specifies whether DDL operation is turned on. "
|
DEF_BOOL(enable_ddl, OB_CLUSTER_PARAMETER, "True", "specifies whether DDL operation is turned on. "
|
||||||
"Value: True:turned on; False: turned off",
|
"Value: True:turned on; False: turned off",
|
||||||
|
@ -18,8 +18,8 @@ class SqlItem:
|
|||||||
self.action_sql = action_sql
|
self.action_sql = action_sql
|
||||||
self.rollback_sql = rollback_sql
|
self.rollback_sql = rollback_sql
|
||||||
|
|
||||||
current_cluster_version = "4.2.1.0"
|
current_cluster_version = "4.3.0.0"
|
||||||
current_data_version = "4.2.1.0"
|
current_data_version = "4.3.0.0"
|
||||||
g_succ_sql_list = []
|
g_succ_sql_list = []
|
||||||
g_commit_sql_list = []
|
g_commit_sql_list = []
|
||||||
|
|
||||||
|
@ -56,5 +56,13 @@
|
|||||||
- 4.2.1.0
|
- 4.2.1.0
|
||||||
|
|
||||||
- version: 4.2.1.0
|
- version: 4.2.1.0
|
||||||
|
can_be_upgraded_to:
|
||||||
|
- 4.2.2.0
|
||||||
|
|
||||||
|
- version: 4.2.2.0
|
||||||
can_be_upgraded_to:
|
can_be_upgraded_to:
|
||||||
- 4.3.0.0
|
- 4.3.0.0
|
||||||
|
|
||||||
|
- version: 4.3.0.0
|
||||||
|
can_be_upgraded_to:
|
||||||
|
- 4.3.1.0
|
||||||
|
@ -26,8 +26,8 @@
|
|||||||
# self.action_sql = action_sql
|
# self.action_sql = action_sql
|
||||||
# self.rollback_sql = rollback_sql
|
# self.rollback_sql = rollback_sql
|
||||||
#
|
#
|
||||||
#current_cluster_version = "4.2.1.0"
|
#current_cluster_version = "4.3.0.0"
|
||||||
#current_data_version = "4.2.1.0"
|
#current_data_version = "4.3.0.0"
|
||||||
#g_succ_sql_list = []
|
#g_succ_sql_list = []
|
||||||
#g_commit_sql_list = []
|
#g_commit_sql_list = []
|
||||||
#
|
#
|
||||||
|
@ -26,8 +26,8 @@
|
|||||||
# self.action_sql = action_sql
|
# self.action_sql = action_sql
|
||||||
# self.rollback_sql = rollback_sql
|
# self.rollback_sql = rollback_sql
|
||||||
#
|
#
|
||||||
#current_cluster_version = "4.2.1.0"
|
#current_cluster_version = "4.3.0.0"
|
||||||
#current_data_version = "4.2.1.0"
|
#current_data_version = "4.3.0.0"
|
||||||
#g_succ_sql_list = []
|
#g_succ_sql_list = []
|
||||||
#g_commit_sql_list = []
|
#g_commit_sql_list = []
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user