提交 e1bbb36c 编写于 作者: T Tyshawn 提交者: ob-robot

[BUG.FIX] Reduce log printing during tablet swap in and out

上级 e0c0e303
......@@ -875,7 +875,7 @@ int ObSSTable::deserialize(common::ObIAllocator &allocator,
LOG_WARN("sstable meta is not valid", K(ret), K_(meta));
} else {
pos = new_pos;
FLOG_INFO("succeed to deserialize sstable", KPC(this));
LOG_DEBUG("succeed to deserialize sstable", KPC(this));
}
if (OB_FAIL(ret)) {
LOG_WARN("fail to deserialize sstable", K(ret), K(*this));
......@@ -895,7 +895,7 @@ int ObSSTable::deserialize_post_work()
} else if (SSTABLE_WRITE_BUILDING != meta_.get_basic_meta().status_ && OB_FAIL(check_valid_for_reading())) {
LOG_WARN("fail to check state", K(ret));
} else {
FLOG_INFO("succeed to do post work for sstable deserialize", KPC(this));
LOG_DEBUG("succeed to do post work for sstable deserialize", KPC(this));
}
return ret;
}
......
......@@ -759,7 +759,7 @@ int ObTablet::load_deserialize(
tablet_meta_.max_sync_storage_schema_version_ = storage_schema_.schema_version_;
}
is_inited_ = true;
LOG_INFO("succeeded to deserialize tablet", K(ret), K(*this));
FLOG_INFO("succeeded to deserialize tablet", K(ret), K(*this));
} else if (OB_UNLIKELY(!is_inited_)) {
reset();
}
......
......@@ -1329,7 +1329,7 @@ int64_t ObTabletTableStore::to_string(char *buf, const int64_t buf_len) const
ObITable *table = major_tables_[i];
if (NULL != table && table->is_sstable()) {
J_OBJ_START();
J_KV(K(i), "type", ObITable::get_table_type_name(table->get_key().table_type_),
J_KV(K(i), "ptr", table, "type", ObITable::get_table_type_name(table->get_key().table_type_),
"tablet_id", table->get_key().tablet_id_,
"scn_range", table->get_key().scn_range_,
"ref", table->get_ref(),
......@@ -1344,7 +1344,7 @@ int64_t ObTabletTableStore::to_string(char *buf, const int64_t buf_len) const
ObITable *table = minor_tables_[i];
if (NULL != table && table->is_sstable()) {
J_OBJ_START();
J_KV(K(i), "type", ObITable::get_table_type_name(table->get_key().table_type_),
J_KV(K(i), "ptr", table, "type", ObITable::get_table_type_name(table->get_key().table_type_),
"tablet_id", table->get_key().tablet_id_,
"scn_range", table->get_key().scn_range_,
"ref", table->get_ref(),
......@@ -1360,7 +1360,7 @@ int64_t ObTabletTableStore::to_string(char *buf, const int64_t buf_len) const
ObITable *table = ddl_sstables_[i];
if (NULL != table && table->is_sstable()) {
J_OBJ_START();
J_KV(K(i), "type", ObITable::get_table_type_name(table->get_key().table_type_),
J_KV(K(i), "ptr", table, "type", ObITable::get_table_type_name(table->get_key().table_type_),
"tablet_id", table->get_key().tablet_id_,
"scn_range", table->get_key().scn_range_,
"ref", table->get_ref(),
......@@ -1375,7 +1375,7 @@ int64_t ObTabletTableStore::to_string(char *buf, const int64_t buf_len) const
ObITable *table = ddl_mem_sstables_[i];
if (NULL != table && table->is_sstable()) {
J_OBJ_START();
J_KV(K(i), "type", ObITable::get_table_type_name(table->get_key().table_type_),
J_KV(K(i), "ptr", table, "type", ObITable::get_table_type_name(table->get_key().table_type_),
"tablet_id", table->get_key().tablet_id_,
"scn_range", table->get_key().scn_range_,
"ref", table->get_ref(),
......@@ -1390,7 +1390,7 @@ int64_t ObTabletTableStore::to_string(char *buf, const int64_t buf_len) const
ObITable *table = extend_tables_[i];
if (NULL != table && table->is_sstable()) {
J_OBJ_START();
J_KV(K(i), "type", ObITable::get_table_type_name(table->get_key().table_type_),
J_KV(K(i), "ptr", table, "type", ObITable::get_table_type_name(table->get_key().table_type_),
"tablet_id", table->get_key().tablet_id_,
"scn_range", table->get_key().scn_range_,
"ref", table->get_ref(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册