improve observer restart
This commit is contained in:
@ -2921,9 +2921,21 @@ int ObServer::reload_bandwidth_throttle_limit(int64_t network_speed)
|
||||
|
||||
void ObServer::check_user_tenant_schema_refreshed(const ObIArray<uint64_t> &tenant_ids, const int64_t expire_time)
|
||||
{
|
||||
bool is_dropped = false;
|
||||
int ret = OB_SUCCESS;
|
||||
uint64_t tenant_id = OB_INVALID_TENANT_ID;
|
||||
|
||||
for (int64_t i = 0; i < tenant_ids.count()
|
||||
&& ObTimeUtility::current_time() < expire_time; ++i) {
|
||||
uint64_t tenant_id = tenant_ids.at(i);
|
||||
tenant_id = tenant_ids.at(i);
|
||||
if (OB_ISNULL(gctx_.schema_service_)) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("schema service is NULL", KR(ret));
|
||||
} else if (OB_FAIL(gctx_.schema_service_->check_if_tenant_has_been_dropped(tenant_id, is_dropped))) {
|
||||
LOG_WARN("fail to check tenant has been dropped at observer startup", KR(ret), K(tenant_id));
|
||||
} else if (is_dropped) {
|
||||
// ignore
|
||||
} else {
|
||||
bool tenant_schema_refreshed = false;
|
||||
while (!tenant_schema_refreshed
|
||||
&& !stop_
|
||||
@ -2949,6 +2961,7 @@ void ObServer::check_user_tenant_schema_refreshed(const ObIArray<uint64_t> &tena
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ObServer::check_log_replay_over(const ObIArray<uint64_t> &tenant_ids, const int64_t expire_time)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user