prompt unit config is too small

This commit is contained in:
wxhwang
2023-08-11 02:18:49 +00:00
committed by ob-robot
parent 115f639cd5
commit 828567c68e
4 changed files with 30 additions and 1 deletions

View File

@ -3275,13 +3275,35 @@ bool ObHAResultInfo::is_valid() const
return !trace_id_.is_invalid() && addr_.is_valid() && MAX_FAILED_TYPE > type_ && ROOT_SERVICE <= type_;
}
const char *ObHAResultInfo::get_error_str_() const
{
const char *str = NULL;
switch (result_) {
case OB_SUCCESS: {
str = "";
break;
}
case OB_TOO_MANY_PARTITIONS_ERROR: {
str = "unit config is too small";
break;
}
default: {
str = common::ob_strerror(result_);
break;
}
}
return str;
}
int ObHAResultInfo::get_comment_str(Comment &comment) const
{
int ret = OB_SUCCESS;
const char *type = get_failed_type_str();
char trace_id[OB_MAX_TRACE_ID_BUFFER_SIZE] = "";
char addr_buf[OB_MAX_SERVER_ADDR_SIZE] = "";
const char *err_code_str = OB_SUCCESS == result_ ? "" : common::ob_strerror(result_);
const char *err_code_str = get_error_str_();
if (!is_valid()) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("invalid result info", K(ret), KPC(this));

View File

@ -1346,6 +1346,9 @@ public:
ObTaskId trace_id_;
ObAddr addr_;
int result_;
private:
const char *get_error_str_() const;
};
struct ObBackupJobAttr final

View File

@ -20,6 +20,7 @@
#include "storage/tx_storage/ob_ls_service.h"
#include "storage/high_availability/ob_storage_ha_reader.h"
#include "storage/tablet/ob_tablet_create_delete_helper.h"
#include "storage/tablet/ob_tablet_create_mds_helper.h"
#include "storage/tablet/ob_tablet.h"
namespace oceanbase
@ -984,6 +985,8 @@ int ObStartLSRestoreTask::create_tablet_(
if (!tablet_meta.is_valid() || OB_ISNULL(ls)) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("create tablet get invalid argument", K(ret), K(tablet_meta), KP(ls));
} else if (OB_FAIL(ObTabletCreateMdsHelper::check_create_new_tablets(1LL))) {
LOG_WARN("failed to check create new tablet", K(ret), K(tablet_meta));
} else if (OB_FAIL(ls->rebuild_create_tablet(tablet_meta, false /*keep old*/))) {
LOG_WARN("failed to create tablet", K(ret), K(tablet_meta));
} else {

View File

@ -2867,6 +2867,7 @@ bool ObLSRestoreResultMgr::can_retrieable_err(const int err) const
case OB_BACKUP_FILE_NOT_EXIST :
case OB_ARCHIVE_ROUND_NOT_CONTINUOUS :
case OB_HASH_NOT_EXIST:
case OB_TOO_MANY_PARTITIONS_ERROR:
bret = false;
break;
default: