[
http://jira.amdatu.org/jira/browse/AMDATU-314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11343#comment-11343
]
Ivo Ladage - van Doorn commented on AMDATU-314:
-----------------------------------------------
Seems to me that the problem is:
- TenantManagementCache.createTenant is invoked
- This methods opens a write lock
- Then it invokes TenantManagementService.createTenant
- This method creates the tenant and registers the Tenant service, which
results in a method call to TenantManagementCache.gettenantById (by
TenantUserAdminDecorator.init)
- The TenantManagementCache.getTenantById tries to get a read lock, but it
still holding a write lock
> Deadlock when creating many tenants from ConfigAdmin
> ----------------------------------------------------
>
> Key: AMDATU-314
> URL: http://jira.amdatu.org/jira/browse/AMDATU-314
> Project: Amdatu
> Issue Type: Bug
> Components: Amdatu Core
> Affects Versions: 0.1.1
> Reporter: Ivo Ladage - van Doorn
> Assignee: Ivo Ladage - van Doorn
> Fix For: 0.3.0-M0
>
> Attachments: tenant.txt, threaddump.txt, threads.txt
>
>
> If you create many tenants (i.e. 100) at once by adding the tenant
> configuration to the org.amdatu.core.tenant.cfg file in the /deploy
> directory, it ends up quite soon in some kind of deadlock situation. The
> dashboard is not accessible anymore and it doesn't create more then just a
> few tenants.s
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers