Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Metz
oceanbase
提交
ea76dae8
O
oceanbase
项目概览
Metz
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
0
Fork
0
代码
文件
提交
分支
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ea76dae8
编写于
3月 21, 2022
作者:
L
lx0
提交者:
LINGuanRen
3月 21, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix ObSSTableDumpErrorInfo memleak when checksum error
上级
17fabd98
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
2 deletion
+18
-2
src/share/parameter/ob_parameter_seed.ipp
src/share/parameter/ob_parameter_seed.ipp
+4
-0
src/storage/compaction/ob_partition_merge_util.cpp
src/storage/compaction/ob_partition_merge_util.cpp
+3
-1
src/storage/ob_partition_storage.cpp
src/storage/ob_partition_storage.cpp
+1
-1
src/storage/ob_sstable_dump_error_info.cpp
src/storage/ob_sstable_dump_error_info.cpp
+10
-0
未找到文件。
src/share/parameter/ob_parameter_seed.ipp
浏览文件 @
ea76dae8
...
...
@@ -950,6 +950,10 @@ DEF_INT(minor_freeze_times, OB_CLUSTER_PARAMETER, "100", "[0, 65535]",
ObParameterAttr(Section::TENANT, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_INT(minor_compact_trigger, OB_CLUSTER_PARAMETER, "2", "[0,16]", "minor_compact_trigger, Range: [0,16] in integer",
ObParameterAttr(Section::TENANT, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_BOOL(_enable_compaction_diagnose, OB_CLUSTER_PARAMETER, "False",
"enable compaction diagnose function"
"Value: True:turned on; False: turned off",
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_CAP(_private_buffer_size, OB_CLUSTER_PARAMETER, "2M",
"[0B,)"
"the trigger remaining data size within transaction for immediate logging, 0B represents not trigger immediate "
...
...
src/storage/compaction/ob_partition_merge_util.cpp
浏览文件 @
ea76dae8
...
...
@@ -1726,7 +1726,9 @@ int ObPartitionMergeUtil::merge_partition(memtable::ObIMemtableCtxFactory* memct
K
(
ret
),
K
(
partition_fuser
->
get_compact_type
()),
K
(
*
partition_fuser
->
get_result_row
()));
ObTableDumper
::
print_error_info
(
ret
,
ctx
,
macro_row_iters
);
if
(
GCONF
.
_enable_compaction_diagnose
)
{
ObTableDumper
::
print_error_info
(
ret
,
ctx
,
macro_row_iters
);
}
}
else
if
(
OB_FAIL
(
partition_fuser
->
calc_column_checksum
(
false
)))
{
LOG_WARN
(
"Failed to calculate column checksum"
,
K
(
ret
));
}
...
...
src/storage/ob_partition_storage.cpp
浏览文件 @
ea76dae8
...
...
@@ -7691,7 +7691,7 @@ int ObPartitionStorage::validate_sstables(
}
else
if
(
OB_FAIL
(
validate_sstable
(
row_count
,
index_table
,
column_checksum_map
)))
{
if
(
OB_ERR_PRIMARY_KEY_DUPLICATE
==
ret
)
{
handle_error_index_table
(
*
index_table
,
index_stats
,
ret
);
if
(
OB_ERR_PRIMARY_KEY_DUPLICATE
==
ret
)
{
if
(
OB_ERR_PRIMARY_KEY_DUPLICATE
==
ret
&&
GCONF
.
_enable_compaction_diagnose
)
{
dump_error_info
(
*
main_sstable
,
*
index_table
);
}
}
else
{
...
...
src/storage/ob_sstable_dump_error_info.cpp
浏览文件 @
ea76dae8
...
...
@@ -228,8 +228,18 @@ int ObSSTableDumpErrorInfo::find_extra_row(
STORAGE_LOG
(
WARN
,
"failed to check row"
,
K
(
ret
));
}
++
iter_row_cnt
;
if
(
nullptr
!=
getter
)
{
allocator_
.
free
(
getter
);
getter
=
nullptr
;
}
}
// end of while
}
if
(
nullptr
!=
scanner
)
{
allocator_
.
free
(
scanner
);
scanner
=
nullptr
;
}
if
(
OB_SUCC
(
ret
))
{
if
(
found_row_cnt
+
sstable2
.
get_meta
().
row_count_
!=
sstable1
.
get_meta
().
row_count_
)
{
ret
=
OB_ERR_UNEXPECTED
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录