add rpc and timeout related error code into retry logic
This commit is contained in:
parent
3e14c8ab6e
commit
3f7aeb996b
@ -58,9 +58,11 @@ public:
|
||||
|| common::OB_TRANS_STMT_TIMEOUT == ret_code || common::OB_RS_NOT_MASTER == ret_code || OB_TRANS_NEED_ROLLBACK == ret_code
|
||||
|| common::OB_SCHEMA_EAGAIN == ret_code || common::OB_GTS_NOT_READY == ret_code || common::OB_ERR_SHARED_LOCK_CONFLICT == ret_code
|
||||
|| 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_RPC_CONNECT_ERROR == ret_code || common::OB_DDL_SCHEMA_VERSION_NOT_MATCH == ret_code
|
||||
|| OB_TRANS_ROLLBACKED == ret_code || OB_TRANS_TIMEOUT == ret_code || OB_ERR_WAIT_REMOTE_SCHEMA_REFRESH == ret_code
|
||||
|| OB_PACKET_STATUS_UNKNOWN == ret_code || OB_TASK_EXPIRED == ret_code || OB_GET_LOCATION_TIME_OUT == ret_code
|
||||
|| common::OB_RPC_SEND_ERROR == ret_code || common::OB_RPC_CONNECT_ERROR == ret_code || common::OB_RPC_POST_ERROR == ret_code
|
||||
|| common::OB_DDL_SCHEMA_VERSION_NOT_MATCH == ret_code || OB_TRANS_ROLLBACKED == ret_code || OB_TRANS_TIMEOUT == ret_code
|
||||
|| OB_ERR_WAIT_REMOTE_SCHEMA_REFRESH == ret_code || OB_TRANS_STMT_TIMEOUT == ret_code || OB_TRANS_KILLED == ret_code
|
||||
|| OB_PACKET_STATUS_UNKNOWN == ret_code || OB_TASK_EXPIRED == ret_code || OB_GET_LOCATION_TIME_OUT == ret_code || OB_IN_STOP_STATE == ret_code
|
||||
|| OB_LS_NOT_EXIST == ret_code || OB_TABLET_NOT_EXIST == ret_code
|
||||
|| is_location_service_renew_error(ret_code);
|
||||
}
|
||||
static bool in_ddl_retry_black_list(const int ret_code)
|
||||
|
Loading…
x
Reference in New Issue
Block a user