Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Metz
oceanbase
提交
db7a7afe
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,发现更多精彩内容 >>
提交
db7a7afe
编写于
8月 16, 2022
作者:
J
JiahuaChen
提交者:
wangzelin.wzl
8月 16, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CP] Add more logs for dropped tenant check information
上级
14a6af15
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
1 deletion
+19
-1
src/sql/engine/dml/ob_multi_dml_plan_mgr.cpp
src/sql/engine/dml/ob_multi_dml_plan_mgr.cpp
+10
-0
src/storage/ob_partition_service.cpp
src/storage/ob_partition_service.cpp
+3
-0
src/storage/ob_pg_memory_garbage_collector.cpp
src/storage/ob_pg_memory_garbage_collector.cpp
+3
-0
src/storage/ob_table_mgr.cpp
src/storage/ob_table_mgr.cpp
+3
-1
未找到文件。
src/sql/engine/dml/ob_multi_dml_plan_mgr.cpp
浏览文件 @
db7a7afe
...
@@ -31,6 +31,16 @@ public:
...
@@ -31,6 +31,16 @@ public:
part_values_
.
reset
();
part_values_
.
reset
();
}
}
TO_STRING_KV
(
K_
(
runner_server
),
K_
(
part_values
));
TO_STRING_KV
(
K_
(
runner_server
),
K_
(
part_values
));
int
assign
(
const
ServerOpInfo
&
other
)
{
int
ret
=
OB_SUCCESS
;
if
(
OB_FAIL
(
part_values_
.
assign
(
other
.
part_values_
)))
{
LOG_WARN
(
"assign part_values failed"
,
K
(
ret
),
K
(
other
));
}
else
{
runner_server_
=
other
.
runner_server_
;
}
return
ret
;
}
ObAddr
runner_server_
;
ObAddr
runner_server_
;
ObSEArray
<
PartValuesInfo
,
1
>
part_values_
;
ObSEArray
<
PartValuesInfo
,
1
>
part_values_
;
...
...
src/storage/ob_partition_service.cpp
浏览文件 @
db7a7afe
...
@@ -12660,6 +12660,9 @@ int ObPartitionService::check_tenant_pg_exist(const uint64_t tenant_id, bool& is
...
@@ -12660,6 +12660,9 @@ int ObPartitionService::check_tenant_pg_exist(const uint64_t tenant_id, bool& is
STORAGE_LOG(WARN, "get partition failed", K(ret));
STORAGE_LOG(WARN, "get partition failed", K(ret));
} else if (partition->get_partition_key().get_tenant_id() == tenant_id) {
} else if (partition->get_partition_key().get_tenant_id() == tenant_id) {
is_exist = true;
is_exist = true;
if (REACH_TIME_INTERVAL(60 * 1000 * 1000)) { // 1 minute
LOG_INFO("tenant partition exist", "pg_key", partition->get_partition_key());
}
break;
break;
}
}
}
}
...
...
src/storage/ob_pg_memory_garbage_collector.cpp
浏览文件 @
db7a7afe
...
@@ -129,6 +129,9 @@ int ObPGMemoryGarbageCollector::check_tenant_pg_exist(const uint64_t tenant_id,
...
@@ -129,6 +129,9 @@ int ObPGMemoryGarbageCollector::check_tenant_pg_exist(const uint64_t tenant_id,
{
{
ObIPartitionGroup
*
pg
=
curr
->
get_pg
();
ObIPartitionGroup
*
pg
=
curr
->
get_pg
();
is_exist
=
pg
->
get_partition_key
().
get_tenant_id
()
==
tenant_id
;
is_exist
=
pg
->
get_partition_key
().
get_tenant_id
()
==
tenant_id
;
if
(
REACH_TIME_INTERVAL
(
60
*
1000
*
1000
))
{
// 1 minute
LOG_INFO
(
"tenant pg memory garbage exist"
,
"pg_key"
,
pg
->
get_partition_key
());
}
}
}
return
ret
;
return
ret
;
}
}
...
...
src/storage/ob_table_mgr.cpp
浏览文件 @
db7a7afe
...
@@ -1049,7 +1049,9 @@ int ObTableMgr::check_tenant_sstable_exist(const uint64_t tenant_id, bool& is_ex
...
@@ -1049,7 +1049,9 @@ int ObTableMgr::check_tenant_sstable_exist(const uint64_t tenant_id, bool& is_ex
ret
=
OB_ERR_SYS
;
ret
=
OB_ERR_SYS
;
LOG_ERROR
(
"node must not null"
,
K
(
ret
),
KP
(
table
));
LOG_ERROR
(
"node must not null"
,
K
(
ret
),
KP
(
table
));
}
else
if
(
!
table
->
is_sstable
())
{
}
else
if
(
!
table
->
is_sstable
())
{
// do nothing
if
(
REACH_TIME_INTERVAL
(
60
*
1000
*
1000
))
{
// 1 minute
LOG_INFO
(
"tenant sstable exist"
,
"table_key"
,
table
->
get_key
());
}
}
else
if
(
table
->
get_partition_key
().
get_tenant_id
()
==
tenant_id
)
{
}
else
if
(
table
->
get_partition_key
().
get_tenant_id
()
==
tenant_id
)
{
is_exist
=
true
;
is_exist
=
true
;
break
;
break
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录