[CP] split clog io error into disk full and disk hang
This commit is contained in:
@ -388,8 +388,16 @@ int LockForReadFunctor::check_clog_disk_full_()
|
|||||||
MTL(logservice::coordinator::ObFailureDetector *);
|
MTL(logservice::coordinator::ObFailureDetector *);
|
||||||
|
|
||||||
if (NULL != detector && detector->is_clog_disk_has_fatal_error()) {
|
if (NULL != detector && detector->is_clog_disk_has_fatal_error()) {
|
||||||
ret = detector->is_clog_disk_has_full_error()? OB_SERVER_OUTOF_DISK_SPACE: OB_CLOG_DISK_HANG;
|
if (detector->is_clog_disk_has_full_error()) {
|
||||||
TRANS_LOG(ERROR, "unexpected io error", K(ret), KPC(this));
|
ret = OB_SERVER_OUTOF_DISK_SPACE;
|
||||||
|
TRANS_LOG(ERROR, "disk full error", K(ret), KPC(this));
|
||||||
|
} else if (detector->is_clog_disk_has_hang_error()) {
|
||||||
|
ret = OB_CLOG_DISK_HANG;
|
||||||
|
TRANS_LOG(ERROR, "disk hang error", K(ret), KPC(this));
|
||||||
|
} else {
|
||||||
|
ret = OB_IO_ERROR;
|
||||||
|
TRANS_LOG(ERROR, "unexpected io error", K(ret), KPC(this));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user