Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知世而放
oceanbase
提交
82be6c8d
O
oceanbase
项目概览
知世而放
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
82be6c8d
编写于
10月 26, 2022
作者:
O
obdev
提交者:
wangzelin.wzl
10月 26, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
set filled_tx_log_ts more precise && skip inner tablet when get min end ts in old tablets
上级
30fded45
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
3 deletion
+16
-3
src/storage/compaction/ob_tablet_merge_ctx.cpp
src/storage/compaction/ob_tablet_merge_ctx.cpp
+15
-2
src/storage/meta_mem/ob_tenant_meta_mem_mgr.cpp
src/storage/meta_mem/ob_tenant_meta_mem_mgr.cpp
+1
-1
未找到文件。
src/storage/compaction/ob_tablet_merge_ctx.cpp
浏览文件 @
82be6c8d
...
...
@@ -267,14 +267,27 @@ int ObTabletMergeInfo::record_start_tx_scn_for_tx_data(const ObTabletMergeCtx &c
}
else
if
(
ctx
.
param_
.
is_minor_merge
())
{
// when this merege is MINOR_MERGE or MINI_MINOR_MERGE, use max_filtered_end_scn in filter if filtered some tx data
ObTransStatusFilter
*
compaction_filter_
=
(
ObTransStatusFilter
*
)
ctx
.
compaction_filter_
;
if
(
OB_ISNULL
(
compaction_filter_
))
{
ObSSTable
*
oldest_tx_data_sstable
=
static_cast
<
ObSSTable
*>
(
ctx
.
tables_handle_
.
get_table
(
0
));
if
(
OB_ISNULL
(
oldest_tx_data_sstable
))
{
ret
=
OB_ERR_UNEXPECTED
;
LOG_ERROR
(
"tx data sstable is unexpected nullptr"
,
KR
(
ret
));
}
else
if
(
OB_ISNULL
(
compaction_filter_
))
{
// This minor merge do not filter any tx data
param
.
filled_tx_log_ts_
=
ctx
.
log_ts_range_
.
start_log_ts_
;
param
.
filled_tx_log_ts_
=
oldest_tx_data_sstable
->
get_filled_tx_scn
()
;
}
else
if
(
compaction_filter_
->
get_max_filtered_end_scn
()
>
0
)
{
param
.
filled_tx_log_ts_
=
compaction_filter_
->
get_max_filtered_end_scn
();
}
else
{
param
.
filled_tx_log_ts_
=
compaction_filter_
->
get_recycle_scn
();
}
if
(
OB_SUCC
(
ret
)
&&
param
.
filled_tx_log_ts_
<
oldest_tx_data_sstable
->
get_filled_tx_scn
())
{
ret
=
OB_ERR_UNEXPECTED
;
LOG_ERROR
(
"invliad filled tx log ts"
,
KR
(
ret
),
K
(
param
),
K
(
oldest_tx_data_sstable
->
get_filled_tx_scn
()),
KPC
(
oldest_tx_data_sstable
));
}
}
else
{
ret
=
OB_ERR_UNEXPECTED
;
LOG_ERROR
(
"unexpected merge type when merge tx data table"
,
KR
(
ret
),
K
(
ctx
));
...
...
src/storage/meta_mem/ob_tenant_meta_mem_mgr.cpp
浏览文件 @
82be6c8d
...
...
@@ -377,7 +377,7 @@ int ObTenantMetaMemMgr::get_min_end_log_ts_for_ls(const share::ObLSID &ls_id, in
SSTableSet
::
const_iterator
iter
=
last_min_minor_sstable_set_
.
begin
();
while
(
OB_SUCC
(
ret
)
&&
iter
!=
last_min_minor_sstable_set_
.
end
())
{
const
MinMinorSSTableInfo
&
info
=
iter
->
first
;
if
(
info
.
ls_id_
!=
ls_id
)
{
if
(
info
.
ls_id_
!=
ls_id
||
info
.
table_key_
.
tablet_id_
.
is_ls_inner_tablet
()
)
{
// just skip
}
else
if
(
OB_UNLIKELY
(
!
info
.
is_valid
()))
{
ret
=
OB_ERR_UNEXPECTED
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录