change-todos-of-jinyu
This commit is contained in:
parent
af82a34e99
commit
495abac47d
8
deps/oblib/src/lib/string/ob_string.h
vendored
8
deps/oblib/src/lib/string/ob_string.h
vendored
@ -170,7 +170,7 @@ public:
|
||||
* DO NOT USE THIS ANY MORE
|
||||
*/
|
||||
|
||||
inline void assign(char *bytes, const int64_t length) //TODO(yongle.xh): for -Wshorten-64-to-32, delete it later 4.3
|
||||
inline void assign(char *bytes, const int64_t length) //TODO(yongle.xh): for -Wshorten-64-to-32, delete it later 4.4
|
||||
{
|
||||
if (length > INT32_MAX) {
|
||||
LIB_LOG_RET(ERROR, OB_ERR_UNEXPECTED, "invalid length for assign", K(length));
|
||||
@ -207,7 +207,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
inline void assign_ptr(const char *bytes, const int64_t length) //TODO(yongle.xh): for -Wshorten-64-to-32, delete it later 4.3
|
||||
inline void assign_ptr(const char *bytes, const int64_t length) //TODO(yongle.xh): for -Wshorten-64-to-32, delete it later 4.4
|
||||
{
|
||||
if (length < 0 || length > INT32_MAX) {
|
||||
LIB_LOG_RET(ERROR, OB_ERR_UNEXPECTED, "invalid length for assign ptr", K(length));
|
||||
@ -215,7 +215,7 @@ public:
|
||||
assign_ptr(bytes, static_cast<int32_t>(length));
|
||||
}
|
||||
|
||||
inline void assign_ptr(const char *bytes, const uint64_t length) //TODO(yongle.xh): for -Wshorten-64-to-32, delete it later 4.3
|
||||
inline void assign_ptr(const char *bytes, const uint64_t length) //TODO(yongle.xh): for -Wshorten-64-to-32, delete it later 4.4
|
||||
{
|
||||
if (length < 0 || length > INT32_MAX) {
|
||||
LIB_LOG_RET(ERROR, OB_ERR_UNEXPECTED, "invalid length for assign ptr", K(length));
|
||||
@ -223,7 +223,7 @@ public:
|
||||
assign_ptr(bytes, static_cast<int32_t>(length));
|
||||
}
|
||||
|
||||
inline void assign_ptr(const char *bytes, const uint32_t length) //TODO(yongle.xh): for -Wshorten-64-to-32, delete it later 4.3
|
||||
inline void assign_ptr(const char *bytes, const uint32_t length) //TODO(yongle.xh): for -Wshorten-64-to-32, delete it later 4.4
|
||||
{
|
||||
if (length > INT32_MAX) {
|
||||
LIB_LOG_RET(ERROR, OB_ERR_UNEXPECTED, "invalid length for assign ptr", K(length));
|
||||
|
@ -1250,7 +1250,7 @@ int ObUserTenantBackupDeleteMgr::get_delete_backup_set_infos_(ObArray<ObBackupSe
|
||||
int ObUserTenantBackupDeleteMgr::get_delete_backup_piece_infos_(ObArray<ObTenantArchivePieceAttr> &piece_list)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
// TODO(wenjinyu.wjy) 4.3 support
|
||||
// TODO(xingzhi) 4.4 support
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,7 @@ int ObBackupCleanTaskMgr::init(
|
||||
backup_service_ = &backup_service;
|
||||
is_inited_ = true;
|
||||
}
|
||||
// TODO(wenjinyu.wjy): integrate sql_proxy and lease_service 4.3
|
||||
// TODO(xingzhi): integrate sql_proxy and lease_service 4.4
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -604,7 +604,7 @@ int ObBackupCleanTaskMgr::get_ls_ids_from_traverse_(const ObBackupPath &path, Ob
|
||||
LOG_WARN("failed to set log stream prefix", K(ret));
|
||||
} else if (OB_FAIL(prefix_op.init(logstream_prefix, strlen(logstream_prefix)))) {
|
||||
LOG_WARN("failed to init dir prefix", K(ret), K(logstream_prefix));
|
||||
// TODO(wenjinyu.wjy) iterate dir sequentially 4.3
|
||||
// TODO(xingzhi) iterate dir sequentially 4.4
|
||||
} else if (OB_FAIL(util.list_directories(path.get_obstr(), backup_dest_.get_storage_info(), prefix_op))) {
|
||||
LOG_WARN("failed to list files", K(ret));
|
||||
} else {
|
||||
@ -816,7 +816,7 @@ int ObBackupCleanTaskMgr::delete_data_info_turn_files_(const ObBackupPath &infos
|
||||
ObDirPrefixEntryNameFilter prefix_op(d_entrys);
|
||||
if (OB_FAIL(prefix_op.init(info_turn_prefix, strlen(info_turn_prefix)))) {
|
||||
LOG_WARN("failed to init dir prefix", K(ret), K(info_turn_prefix));
|
||||
// TODO(wenjinyu.wjy) iterate dir sequentially 4.3
|
||||
// TODO(xingzhi) iterate dir sequentially 4.4
|
||||
} else if (OB_FAIL(util.list_directories(infos_path.get_obstr(), backup_dest_.get_storage_info(), prefix_op))) {
|
||||
LOG_WARN("failed to list directories", K(ret));
|
||||
} else {
|
||||
|
@ -325,7 +325,7 @@ int ObBackupCleanService::handle_backup_delete(const obrpc::ObBackupCleanArg &ar
|
||||
};
|
||||
case ObNewBackupCleanType::DELETE_BACKUP_SET:
|
||||
case ObNewBackupCleanType::DELETE_BACKUP_PIECE: {
|
||||
// TODO(wenjinyu.wjy) 4.3 support delete backup set/piece
|
||||
// TODO(xingzhi) 4.4 support delete backup set/piece
|
||||
ret = OB_NOT_SUPPORTED;
|
||||
break;
|
||||
};
|
||||
@ -337,7 +337,7 @@ int ObBackupCleanService::handle_backup_delete(const obrpc::ObBackupCleanArg &ar
|
||||
break;
|
||||
};
|
||||
case ObNewBackupCleanType::DELETE_BACKUP_ALL: {
|
||||
// TODO(wenjinyu.wjy) 4.3 support delete backup all function
|
||||
// TODO(xingzhi) 4.4 support delete backup all function
|
||||
ret = OB_NOT_SUPPORTED;
|
||||
break;
|
||||
};
|
||||
|
@ -146,7 +146,7 @@ public:
|
||||
int64_t task_count_;
|
||||
int64_t success_task_count_;
|
||||
};
|
||||
// TODO(wenjinyu.wjy) 4.3 Split the structure of set and piece
|
||||
// TODO(xingzhi) 4.4 Split the structure of set and piece
|
||||
|
||||
struct ObBackupCleanTaskAttr final
|
||||
{
|
||||
@ -233,4 +233,4 @@ struct ObDeletePolicyAttr final
|
||||
}//share
|
||||
}//oceanbase
|
||||
|
||||
#endif /* OCEANBASE_SHARE_OB_BACKUP_CEALN_STRUCT_H_ */
|
||||
#endif /* OCEANBASE_SHARE_OB_BACKUP_CEALN_STRUCT_H_ */
|
||||
|
@ -65,7 +65,7 @@ int ObBackupConnectivityCheckManager::schedule_connectivity_check_(
|
||||
const share::ObBackupPath &path)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
// TODO(wenjinyu.wjy) in 4.3, this code logic needs to be rewritten. Since server_mgr needs to be removed, first comment the code
|
||||
// TODO(mingqiao) in 4.3, this code logic needs to be rewritten. Since server_mgr needs to be removed, first comment the code
|
||||
// obrpc::ObCheckBackupConnectivityArg args;
|
||||
// args.tenant_id_ = tenant_id_;
|
||||
// common::ObArray<ObAddr> server_list;
|
||||
@ -205,7 +205,7 @@ int ObBackupConnectivityCheckManager::check_backup_dest_connectivity(
|
||||
LOG_WARN("failed to check oss/cos io permission", K(ret), K_(tenant_id), K(backup_dest));
|
||||
} else if (OB_FAIL(set_connectivity_check_path_(backup_dest, path))) {
|
||||
LOG_WARN("failed to get check file", K(ret), K_(tenant_id), K(backup_dest));
|
||||
// TODO(wenjinyu.wjy) in 4.3, support check connectivity
|
||||
// TODO(mingqiao) in 4.3, support check connectivity
|
||||
//} else if (OB_FAIL(schedule_connectivity_check_(backup_dest, path))) {
|
||||
// LOG_WARN("failed to schedule connectivity check", K(ret), K_(tenant_id));
|
||||
} else if (OB_FAIL(set_last_check_time_(backup_dest))) {
|
||||
@ -1278,4 +1278,4 @@ int ObBackupStorageInfoOperator::get_backup_dest(
|
||||
return ret;
|
||||
}
|
||||
}//share
|
||||
}//oceanbase
|
||||
}//oceanbase
|
||||
|
@ -1218,8 +1218,7 @@ int ObCheckDirEmptOp::func(const dirent *entry)
|
||||
file_cnt_++;
|
||||
return OB_ERR_EXIST_OBJECT;
|
||||
}
|
||||
// TODO(wenjinyu.wjy) need to be refactored 4.3
|
||||
// can be optimized, object storage no need do extra list_dir
|
||||
|
||||
int ObBackupIoAdapter::is_empty_directory(const common::ObString &uri,
|
||||
const share::ObBackupStorageInfo *storage_info,
|
||||
bool &is_empty_directory)
|
||||
|
@ -95,7 +95,7 @@ int ObLogRestoreSourceLocationConfigParser::check_before_update_inner_config(
|
||||
LOG_USER_ERROR(OB_INVALID_ARGUMENT, "set standby itself as log restore source");
|
||||
}
|
||||
}
|
||||
//TODO (wenjinyu.wjy) need support access permission check
|
||||
//TODO (mingqiao) need support access permission check
|
||||
//
|
||||
return ret;
|
||||
}
|
||||
|
@ -84,7 +84,6 @@ int ObParallelMergeCtx::init(compaction::ObBasicTabletMergeCtx &merge_ctx)
|
||||
STORAGE_LOG(WARN, "Invalid argument to init parallel merge", K(ret), K(merge_ctx));
|
||||
} else if (FALSE_IT(tablet_size = merge_ctx.get_schema()->get_tablet_size())) {
|
||||
} else if (!merge_ctx.get_need_parallel_minor_merge()) {
|
||||
//TODO(jinyu) backfill need using same code with minor merge in 4.2 RC3.
|
||||
enable_parallel_minor_merge = false;
|
||||
} else {
|
||||
omt::ObTenantConfigGuard tenant_config(TENANT_CONF(MTL_ID()));
|
||||
|
@ -1973,6 +1973,7 @@ int ObTabletMdsTableBackfillTXTask::prepare_mds_table_merge_ctx_(
|
||||
static_param.version_range_.multi_version_start_ = tablet_handle_.get_obj()->get_multi_version_start();
|
||||
static_param.merge_scn_ = backfill_tx_ctx_->backfill_scn_;
|
||||
static_param.create_snapshot_version_ = 0;
|
||||
//TODO(muwei): backfill need using same code with minor merge in 4.4.
|
||||
static_param.need_parallel_minor_merge_ = false;
|
||||
// double set insurance
|
||||
static_param.tablet_transfer_seq_ = dest_transfer_seq_;
|
||||
|
@ -530,7 +530,6 @@ int ObTXTransferUtils::get_tablet_status_(
|
||||
return ret;
|
||||
}
|
||||
|
||||
// TODO(wenjinyu.wjy) (4.3)It needs to be added to trigger the tablet freezing operation
|
||||
int ObTXTransferUtils::set_tablet_freeze_flag(storage::ObLS &ls, ObTablet *tablet)
|
||||
{
|
||||
MDS_TG(10_ms);
|
||||
|
@ -4000,7 +4000,7 @@ int ObTablet::get_read_tables(
|
||||
return ret;
|
||||
}
|
||||
|
||||
// TODO (wenjinyu.wjy) need to be moved to ObLSTableService in 4.3
|
||||
// TODO (mwuei): need to be moved to ObLSTableService in 4.4
|
||||
int ObTablet::get_src_tablet_read_tables_(
|
||||
const int64_t snapshot_version,
|
||||
const bool allow_no_ready_read,
|
||||
|
@ -704,7 +704,7 @@ int ObTabletMdsData::init_for_merge_with_full_mds_data(
|
||||
const ObTabletFullMediumInfo &full_memory_medium_info_list,
|
||||
const int64_t finish_medium_scn)
|
||||
{
|
||||
//TODO(xianzhi)/(muwei.ym) check it for migration/transfer
|
||||
//TODO(muwei.ym) check it for migration/transfer
|
||||
int ret = OB_SUCCESS;
|
||||
|
||||
if (OB_UNLIKELY(is_inited_)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user