Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
oceanbase
提交
66d983f9
O
oceanbase
项目概览
oceanbase
/
oceanbase
2 年多 前同步成功
通知
262
Star
6084
Fork
1301
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
66d983f9
编写于
11月 12, 2025
作者:
L
leftgeek
提交者:
ob-robot
11月 12, 2025
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the bug of deleting tablet from active_ddl_kv_mgr when ddl_checkpoint_scn >= ddl_commit_scn
上级
5643b8be
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
13 deletion
+4
-13
src/storage/ddl/ob_ddl_merge_task_utils.cpp
src/storage/ddl/ob_ddl_merge_task_utils.cpp
+0
-1
src/storage/ddl/ob_inc_ddl_merge_helper.cpp
src/storage/ddl/ob_inc_ddl_merge_helper.cpp
+0
-6
src/storage/ls/ob_ls_ddl_log_handler.cpp
src/storage/ls/ob_ls_ddl_log_handler.cpp
+4
-6
未找到文件。
src/storage/ddl/ob_ddl_merge_task_utils.cpp
浏览文件 @
66d983f9
...
...
@@ -515,7 +515,6 @@ int ObDDLMergeTaskUtils::update_tablet_table_store(ObDDLTabletMergeDagParamV2 &d
table_store_param
.
ddl_info_
.
update_with_major_flag_
=
for_major
;
table_store_param
.
ddl_info_
.
keep_old_ddl_sstable_
=
!
for_major
;
table_store_param
.
ddl_info_
.
data_format_version_
=
dag_merge_param
.
ddl_task_param_
.
tenant_data_version_
;
table_store_param
.
ddl_info_
.
ddl_commit_scn_
=
dag_merge_param
.
rec_scn_
;
table_store_param
.
ddl_info_
.
ddl_checkpoint_scn_
=
dag_merge_param
.
rec_scn_
;
if
(
!
for_major
)
{
// data is not complete, now update ddl table store only for reducing count of ddl dump sstable.
...
...
src/storage/ddl/ob_inc_ddl_merge_helper.cpp
浏览文件 @
66d983f9
...
...
@@ -1106,10 +1106,7 @@ int ObIncMajorDDLMergeHelper::update_tablet_table_store(
}
if
(
OB_SUCC
(
ret
))
{
table_store_param
.
ddl_info_
.
update_with_major_flag_
=
false
;
table_store_param
.
ddl_info_
.
keep_old_ddl_sstable_
=
!
for_major
;
table_store_param
.
ddl_info_
.
data_format_version_
=
dag_merge_param
.
ddl_task_param_
.
tenant_data_version_
;
table_store_param
.
ddl_info_
.
ddl_commit_scn_
=
dag_merge_param
.
rec_scn_
;
table_store_param
.
ddl_info_
.
ddl_checkpoint_scn_
=
dag_merge_param
.
rec_scn_
;
for
(
int64_t
i
=
0
;
!
for_major
&&
OB_SUCC
(
ret
)
&&
i
<
co_sstable_array
.
get_count
();
i
++
)
{
...
...
@@ -2086,10 +2083,7 @@ int ObSSIncMajorDDLMergeHelper::update_tablet_table_store(
false
/* has truncate info*/
))))
{
LOG_WARN
(
"init with compaction info failed"
,
K
(
ret
));
}
else
{
table_store_param
.
ddl_info_
.
update_with_major_flag_
=
false
;
table_store_param
.
ddl_info_
.
keep_old_ddl_sstable_
=
!
dag_merge_param
.
table_key_
.
is_inc_major_type_sstable
();
table_store_param
.
ddl_info_
.
data_format_version_
=
dag_merge_param
.
ddl_task_param_
.
tenant_data_version_
;
table_store_param
.
ddl_info_
.
ddl_commit_scn_
=
dag_merge_param
.
rec_scn_
;
table_store_param
.
ddl_info_
.
ddl_checkpoint_scn_
=
dag_merge_param
.
rec_scn_
;
for
(
int64_t
i
=
0
;
!
for_major
&&
OB_SUCC
(
ret
)
&&
i
<
table_array
.
get_count
();
i
++
)
{
...
...
src/storage/ls/ob_ls_ddl_log_handler.cpp
浏览文件 @
66d983f9
...
...
@@ -76,7 +76,10 @@ int ObActiveDDLKVMgr::del_tablets(const common::ObIArray<ObTabletID> &tablet_ids
if
(
OB_FAIL
(
active_ddl_tablets_
.
assign
(
tmp_active_tablet_ids
)))
{
LOG_WARN
(
"assign active ddl tablet ids failed"
,
K
(
ret
));
}
else
{
FLOG_INFO
(
"del tablets from active ddl kv mgr"
,
K_
(
active_ddl_tablets
),
K
(
tablet_ids
));
FLOG_INFO
(
"del tablets from active ddl kv mgr"
,
K_
(
active_ddl_tablets
));
if
(
!
tablet_ids
.
empty
())
{
FLOG_INFO
(
"succeed to del tablets"
,
K
(
tablet_ids
),
K
(
common
::
lbt
()));
}
}
}
}
...
...
@@ -136,11 +139,6 @@ int ObActiveDDLKVIterator::get_next_ddl_kv_mgr(ObDDLKvMgrHandle &handle)
}
else
{
LOG_WARN
(
"failed to get tablet"
,
K
(
ret
),
K
(
ls_
->
get_ls_id
()),
K
(
tablet_id
));
}
}
else
if
(
tablet_handle
.
get_obj
()
->
get_tablet_meta
().
ddl_commit_scn_
.
is_valid_and_not_min
()
&&
tablet_handle
.
get_obj
()
->
get_tablet_meta
().
ddl_checkpoint_scn_
>=
tablet_handle
.
get_obj
()
->
get_tablet_meta
().
ddl_commit_scn_
)
{
if
(
OB_FAIL
(
to_del_tablets_
.
push_back
(
tablet_id
)))
{
LOG_WARN
(
"push back to deleted tablet failed"
,
K
(
ret
));
}
}
else
if
(
OB_FAIL
(
tablet_handle
.
get_obj
()
->
get_ddl_kv_mgr
(
handle
)))
{
LOG_WARN
(
"get ddl kv mgr failed"
,
K
(
ret
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录