Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Metz
oceanbase
提交
528f2057
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看板
提交
528f2057
编写于
11月 18, 2021
作者:
H
handora
提交者:
LINGuanRen
11月 18, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[BUG] fix report error msg from sql recheck
上级
f6fbce3c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
22 addition
and
8 deletion
+22
-8
src/storage/ob_partition_storage.cpp
src/storage/ob_partition_storage.cpp
+21
-8
src/storage/ob_partition_storage.h
src/storage/ob_partition_storage.h
+1
-0
未找到文件。
src/storage/ob_partition_storage.cpp
浏览文件 @
528f2057
...
@@ -2922,14 +2922,27 @@ int ObPartitionStorage::process_old_row(ObDMLRunningCtx& run_ctx, const bool dat
...
@@ -2922,14 +2922,27 @@ int ObPartitionStorage::process_old_row(ObDMLRunningCtx& run_ctx, const bool dat
relative_tables
.
index_tables_
[
i
],
store_ctx
,
idx_col_descs
,
idx_row
->
row_val_
,
exists
)))
{
relative_tables
.
index_tables_
[
i
],
store_ctx
,
idx_col_descs
,
idx_row
->
row_val_
,
exists
)))
{
STORAGE_LOG
(
WARN
,
"failed to check rowkey existing"
,
K
(
*
idx_row
),
K
(
ret
));
STORAGE_LOG
(
WARN
,
"failed to check rowkey existing"
,
K
(
*
idx_row
),
K
(
ret
));
}
else
if
(
!
exists
)
{
}
else
if
(
!
exists
)
{
ret
=
OB_ERR_UNEXPECTED
;
if
(
run_ctx
.
store_ctx_
.
mem_ctx_
!=
NULL
)
{
STORAGE_LOG
(
ERROR
,
ObMemtableCtx
*
curr_mt_ctx
=
static_cast
<
ObMemtableCtx
*>
(
run_ctx
.
store_ctx_
.
mem_ctx_
);
"DEBUG ATTENTION!!!! update or delete a non exist index row"
,
transaction
::
ObTransCtx
*
trans_ctx
=
curr_mt_ctx
->
get_trans_ctx
();
K
(
ret
),
if
(
NULL
!=
trans_ctx
)
{
KPC
(
idx_row
),
if
(
!
trans_ctx
->
is_bounded_staleness_read
()
&&
curr_mt_ctx
->
is_for_replay
())
{
K
(
relative_tables
.
data_table_
.
tables_handle_
),
TRANS_LOG
(
WARN
,
"strong consistent read follower when sql check"
,
K
(
relative_tables
.
index_tables_
[
i
]),
K
(
trans_ctx
->
get_trans_id
()));
K
(
relative_tables
.
index_tables_
[
i
].
tables_handle_
));
ret
=
OB_NOT_MASTER
;
}
}
}
if
(
OB_NOT_MASTER
!=
ret
)
{
ret
=
OB_ERR_UNEXPECTED
;
STORAGE_LOG
(
ERROR
,
"DEBUG ATTENTION!!!! update or delete a non exist index row"
,
K
(
ret
),
KPC
(
idx_row
),
K
(
relative_tables
.
data_table_
.
tables_handle_
),
K
(
relative_tables
.
index_tables_
[
i
]),
K
(
relative_tables
.
index_tables_
[
i
].
tables_handle_
));
}
}
else
{
}
else
{
// STORAGE_LOG(INFO, "build index row", K(*idx_row), K(null_idx_val), K(type));
// STORAGE_LOG(INFO, "build index row", K(*idx_row), K(null_idx_val), K(type));
if
(
ND_ROWKEY_CHANGE
==
type
&&
!
null_idx_val
)
{
if
(
ND_ROWKEY_CHANGE
==
type
&&
!
null_idx_val
)
{
...
...
src/storage/ob_partition_storage.h
浏览文件 @
528f2057
...
@@ -692,6 +692,7 @@ private:
...
@@ -692,6 +692,7 @@ private:
const
ObStoreCtx
&
ctx
,
const
ObTableScanParam
&
scan_param
,
const
common
::
ObNewRow
&
row
,
RowReshape
*&
row_reshape
);
const
ObStoreCtx
&
ctx
,
const
ObTableScanParam
&
scan_param
,
const
common
::
ObNewRow
&
row
,
RowReshape
*&
row_reshape
);
int
check_useless_index_mini_merge
(
const
storage
::
ObSSTableMergeCtx
&
ctx
);
int
check_useless_index_mini_merge
(
const
storage
::
ObSSTableMergeCtx
&
ctx
);
int
dump_error_info
(
ObSSTable
&
main_sstable
,
ObSSTable
&
index_sstable
);
int
dump_error_info
(
ObSSTable
&
main_sstable
,
ObSSTable
&
index_sstable
);
void
check_leader_changed_for_sql_recheck_
(
ObDMLRunningCtx
&
run_ctx
,
int
&
ret
);
// disallow copy;
// disallow copy;
DISALLOW_COPY_AND_ASSIGN
(
ObPartitionStorage
);
DISALLOW_COPY_AND_ASSIGN
(
ObPartitionStorage
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录