fix ddl retry error code
This commit is contained in:
@ -50,7 +50,7 @@ public:
|
||||
virtual ObIDDLTask *deep_copy(char *buf, const int64_t size) const = 0;
|
||||
virtual bool operator == (const ObIDDLTask &other) const = 0;
|
||||
ObIDDLTaskType get_type() const { return type_; }
|
||||
static bool error_need_retry(const int ret_code)
|
||||
static bool in_ddl_retry_white_list(const int ret_code)
|
||||
{
|
||||
return common::OB_TIMEOUT == ret_code || common::OB_STATE_NOT_MATCH == ret_code || common::OB_SERVER_IS_STOPPING == ret_code
|
||||
|| common::OB_SERVER_IS_INIT == ret_code || common::OB_EAGAIN == ret_code || common::OB_NOT_MASTER == ret_code
|
||||
@ -59,6 +59,10 @@ public:
|
||||
|| common::OB_PARTITION_NOT_EXIST == ret_code || common::OB_PG_IS_REMOVED == ret_code || common::OB_TENANT_NOT_EXIST == ret_code
|
||||
|| common::OB_RPC_SEND_ERROR == ret_code || common::OB_DDL_SCHEMA_VERSION_NOT_MATCH == ret_code;
|
||||
}
|
||||
static bool in_ddl_retry_black_list(const int ret_code)
|
||||
{
|
||||
return common::OB_SERVER_OUTOF_DISK_SPACE == ret_code || common::OB_DISK_ERROR == ret_code;
|
||||
}
|
||||
protected:
|
||||
typedef common::ObCurTraceId::TraceId TaskId;
|
||||
bool need_retry_;
|
||||
|
||||
Reference in New Issue
Block a user