add retry when ret==OB_MINOR_FREEZE_NOT_ALLOW

This commit is contained in:
obdev
2024-06-17 23:14:26 +00:00
committed by ob-robot
parent 2d0d9cd155
commit e5f1e98fe3

View File

@ -233,7 +233,7 @@ public:
LOG_WARN("fail to check status", KR(ret)); LOG_WARN("fail to check status", KR(ret));
} else if (OB_FAIL(tablet_ctx->open())) { } else if (OB_FAIL(tablet_ctx->open())) {
LOG_WARN("fail to open tablet context", KR(ret), K(tablet_id)); LOG_WARN("fail to open tablet context", KR(ret), K(tablet_id));
if (ret == OB_EAGAIN) { if (ret == OB_EAGAIN || ret == OB_MINOR_FREEZE_NOT_ALLOW) {
LOG_WARN("retry to open tablet context", K(tablet_id)); LOG_WARN("retry to open tablet context", K(tablet_id));
ret = OB_SUCCESS; ret = OB_SUCCESS;
} }