MyGit

v4.2.1_CE_BP7

oceanbase/oceanbase

版本发布时间: 2024-06-06 19:09:59

oceanbase/oceanbase最新发布版本:v4.2.4_CE(2024-07-15 09:44:43)

Version information

Information Description
Release date June 6, 2024
Version V4.2.1_CE_BP7
Commit number 69b64b8
RPM number oceanbase-ce-4.2.1.7-107000162024060611

Enhanced features

Product behavioral changes

Parameter changes

Parameter Change type Description
choose_migration_source_policy New The strategy for selecting the migration source. It is a tenant-level parameter. Two strategies are supported:
  • idc: A follower in the same IDC is preferentially selected as the migration source. If only the leader is available, the leader is selected.
  • region: A follower in the same region is preferentially selected as the migration source. If only the leader is available, the leader is selected.
The default value is idc.
json_document_max_depth New The maximum nesting depth for a JSON document. It is a tenant-level parameter. The default value is 100, and the maximum value is 1024.
log_storage_warning_trigger_percentage New The write performance threshold in percentage for triggering a log disk fault. It is a cluster-level parameter.
  • The default value is 0, indicating that if the write delay of a log disk is greater than the value of log_storage_warning_tolerance_time, the log disk is considered faulty.
  • If the value is greater than 0, a log disk is considered faulty when its current write performance is lower than the value of log_storage_warning_trigger_percentage multiplied by the baseline and the duration of the situation reaches the value of log_storage_warning_tolerance_time.
We recommend that you set this parameter to a value of no more than 10.
sql_plan_management_mode New Specifies whether to enable the SQL plan management (SPM) feature. It is a tenant-level parameter. The default value is Disable, indicating that the SPM feature is disabled.
You can use either this parameter or the system variable optimizer_use_sql_plan_baselines to enable the SPM feature. However, we recommend that you use this parameter to enable SPM, which eliminates the need to restart the business application or OceanBase Database Proxy (ODP) for SPM to take effect.

System variable changes

System variable Change type Description
optimizer_features_enable Default value changed
  • The default value is changed from empty to 4.2.1.7. In V4.2.1 BP6 and earlier, an empty default value indicates to use the optimizer features of V4.2.1.0.
  • The new default value indicates that clusters created by using V4.2.1 BP7 and later can use the optimizer features of the new version. Clusters created by using V4.2.1 BP6 and earlier still use the optimizer version specified before the upgrade.

View changes

View Change type Description
CDB/DBA_OB_RESTORE_PROGRESS Columns modified The RECOVER_SCN, RECOVER_SCN_DISPLAY, RECOVER_PROGRESS, TABLET_COUNT, FINISH_TABLET_COUNT, and RESTORE_PROGRESS columns are added to show the physical restore progress.
[G]V$OB_QUERY_RESPONSE_TIME_HISTOGRAM New This view is added to display SQL response time histograms by SQL category. It is a tenant-level view.
CDB_TAB_COL_STATISTICS Content modified The index table information is no longer displayed.

Bug fixes

版本信息

项目 描述
发布日期 2024-06-06
版本号 V4.2.1_CE_BP7
Commit 号 69b64b8
OBServer RPM 版本号 oceanbase-ce-4.2.1.7-107000162024060611

特性增强

产品行为变更

配置项变更

配置项 变更类型 描述
choose_migration_source_policy 新增 新增租户级配置项,用于控制迁移源端的选择策略。提供 2 种选择:
  • idc:在同 IDC 的机器中优先选择 Follower 副本作为源端。若仅有 Leader 副本,则选择 Leader 副本。
  • region:在同 Region 的机器中优先选择 Follower 副本作为源端。若仅有 Leader 副本,则选择 Leader 副本。
默认策略为 idc。
json_document_max_depth 新增 新增租户级配置项,用于设置 JSON 文档中允许的最大嵌套层数,默认为 100,可修改嵌套层数上限至 1024。
log_storage_warning_trigger_percentage 新增 新增集群级配置项,用于设置触发日志盘故障的写入性能百分比阈值。
  • 默认为 0,表示如果日志盘写盘延迟大于配置项 log_storage_warning_tolerance_time 的值,则认为日志盘故障。
  • 若设置值大于 0,表示如果当前的日志盘写入性能下跌到基准性能乘以百分之 log_storage_warning_trigger_percentage 以下,并且性能下降持续 log_storage_warning_tolerance_time 秒,则认为日志盘故障。
建议设置不超过 10。
sql_plan_management_mode 新增 新增租户级配置项,用于控制是否开启 SPM 功能。默认为 Disable,表示关闭 SPM 功能。
此配置项与系统变量 optimizer_use_sql_plan_baselines 都可以控制 SPM 功能的开启,两者任一打开都可以开启 SPM 功能。推荐使用此配置项开启 SPM,可以避免重启业务应用或 ODP 才能使 SPM 生效的步骤。

系统变量变更

系统变量 变更类型 描述
optimizer_features_enable 默认值调整
  • V4.2.1 BP6 及之前的 V4.2.1 BP 版本,默认值为空,表示使用 V4.2.1.0 的优化器能力。
  • V4.2.1 BP7 版本调整默认值为 4.2.1.7,表示 V4.2.1 BP7 开始,新建的集群可以使用新版优化器能力,而从 V4.2.1 BP6 及以下版本升级依然使用升级前指定的优化器版本。

视图变更

视图 变更类型 描述
CDB/DBA_OB_RESTORE_PROGRESS 新增列 新增 RECOVER_SCNRECOVER_SCN_DISPLAYRECOVER_PROGRESSTABLET_COUNTFINISH_TABLET_COUNTRESTORE_PROGRESS 6 列,用于展示物理恢复进度。
[G]V$OB_QUERY_RESPONSE_TIME_HISTOGRAM 新增 各租户新增视图,用于展示不同类别的 SQL 响应时间直方图信息。
CDB_TAB_COL_STATISTICS 视图内容变更 新版本不再展示索引表相关信息。

缺陷修复

开源鸣谢

在此版本发布中,特别感谢社区伙伴的贡献:

感谢浪潮商用机器李松青 @DBres4Power 在ppc64le架构适配上的贡献。

相关地址:原始地址 下载(tar) 下载(zip)

1、 oceanbase-ce-4.2.1.7-107000162024060611.el7.aarch64.rpm 78.96MB

2、 oceanbase-ce-4.2.1.7-107000162024060611.el7.x86_64.rpm 96.44MB

3、 oceanbase-ce-4.2.1.7-107000162024060611.el8.aarch64.rpm 78.98MB

4、 oceanbase-ce-4.2.1.7-107000162024060611.el8.x86_64.rpm 96.5MB

5、 oceanbase-ce-4.2.1.7-107000162024060611.nonlse.el7.aarch64.rpm 78.98MB

6、 oceanbase-ce-4.2.1.7-107000162024060611.nonlse.el8.aarch64.rpm 79.05MB

7、 oceanbase-ce-cdc-4.2.1.7-107000022024053117.el7.aarch64.rpm 88.31MB

8、 oceanbase-ce-cdc-4.2.1.7-107000022024053117.el7.x86_64.rpm 105.89MB

9、 oceanbase-ce-cdc-4.2.1.7-107000022024053117.el8.aarch64.rpm 89.44MB

10、 oceanbase-ce-cdc-4.2.1.7-107000022024053117.el8.x86_64.rpm 107.07MB

11、 oceanbase-ce-libs-4.2.1.7-107000162024060611.el7.aarch64.rpm 143.91KB

12、 oceanbase-ce-libs-4.2.1.7-107000162024060611.el7.x86_64.rpm 154.61KB

13、 oceanbase-ce-libs-4.2.1.7-107000162024060611.el8.aarch64.rpm 150.75KB

14、 oceanbase-ce-libs-4.2.1.7-107000162024060611.el8.x86_64.rpm 159.33KB

15、 oceanbase-ce-libs-4.2.1.7-107000162024060611.nonlse.el7.aarch64.rpm 143.94KB

16、 oceanbase-ce-libs-4.2.1.7-107000162024060611.nonlse.el8.aarch64.rpm 150.78KB

17、 oceanbase-ce-sql-parser-4.2.1.7-107000162024060611.el7.aarch64.rpm 965.64KB

18、 oceanbase-ce-sql-parser-4.2.1.7-107000162024060611.el7.x86_64.rpm 993.48KB

19、 oceanbase-ce-sql-parser-4.2.1.7-107000162024060611.el8.aarch64.rpm 969.94KB

20、 oceanbase-ce-sql-parser-4.2.1.7-107000162024060611.el8.x86_64.rpm 997.78KB

21、 oceanbase-ce-sql-parser-4.2.1.7-107000162024060611.nonlse.el7.aarch64.rpm 966.1KB

22、 oceanbase-ce-sql-parser-4.2.1.7-107000162024060611.nonlse.el8.aarch64.rpm 970.4KB

23、 oceanbase-ce-utils-4.2.1.7-107000162024060611.el7.aarch64.rpm 67.48MB

24、 oceanbase-ce-utils-4.2.1.7-107000162024060611.el7.x86_64.rpm 82.85MB

25、 oceanbase-ce-utils-4.2.1.7-107000162024060611.el8.aarch64.rpm 67.53MB

26、 oceanbase-ce-utils-4.2.1.7-107000162024060611.el8.x86_64.rpm 82.91MB

27、 oceanbase-ce-utils-4.2.1.7-107000162024060611.nonlse.el7.aarch64.rpm 67.52MB

28、 oceanbase-ce-utils-4.2.1.7-107000162024060611.nonlse.el8.aarch64.rpm 67.53MB

查看:2024-06-06发行的版本