mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix CLOUD-1865: Each tenant takes too much time to start up
- Remove redundant INFO logging - Add back override that disables tenant startup (THOR-666) - Raised issue: ALF-19279 Differences between MT bootstrap in Enterprise and Cloud git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@52684 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -317,11 +317,6 @@ public class MultiTAdminServiceImpl implements TenantAdminService, ApplicationCo
|
|||||||
// notify tenant deployers registered so far ...
|
// notify tenant deployers registered so far ...
|
||||||
notifyAfterEnableTenant(tenantDomain);
|
notifyAfterEnableTenant(tenantDomain);
|
||||||
enabledCount++;
|
enabledCount++;
|
||||||
|
|
||||||
if (logger.isDebugEnabled())
|
|
||||||
{
|
|
||||||
logger.debug("Tenant enabled: " + tenantDomain);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -649,7 +644,10 @@ public class MultiTAdminServiceImpl implements TenantAdminService, ApplicationCo
|
|||||||
notifyAfterEnableTenant(tenantDomain);
|
notifyAfterEnableTenant(tenantDomain);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void notifyAfterEnableTenant(String tenantDomain)
|
/**
|
||||||
|
* Call all {@link TenantDeployer#onEnableTenant() TenantDeployers} as the system tenant.
|
||||||
|
*/
|
||||||
|
protected void notifyAfterEnableTenant(String tenantDomain)
|
||||||
{
|
{
|
||||||
// Check that all the passed values are not null
|
// Check that all the passed values are not null
|
||||||
ParameterCheck.mandatory("tenantDomain", tenantDomain);
|
ParameterCheck.mandatory("tenantDomain", tenantDomain);
|
||||||
@@ -667,9 +665,9 @@ public class MultiTAdminServiceImpl implements TenantAdminService, ApplicationCo
|
|||||||
}
|
}
|
||||||
}, tenantDomain);
|
}, tenantDomain);
|
||||||
|
|
||||||
if (logger.isInfoEnabled())
|
if (logger.isDebugEnabled())
|
||||||
{
|
{
|
||||||
logger.info("Tenant enabled: " + tenantDomain);
|
logger.debug("Tenant enabled: " + tenantDomain);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user