You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Pierre Smits (JIRA)" <ji...@apache.org> on 2014/08/26 18:07:58 UTC

[jira] [Comment Edited] (OFBIZ-5729) ofbiz hangs on installing tenant database

    [ https://issues.apache.org/jira/browse/OFBIZ-5729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14110881#comment-14110881 ] 

Pierre Smits edited comment on OFBIZ-5729 at 8/26/14 4:07 PM:
--------------------------------------------------------------

Having done some test regarding the subject, I found that this bug occurs when in entities Tenant and TenantDataResource no reference to tenant 'DEMO1' exists in the dataset accessible by the main delegator.


was (Author: pfm.smits):
Having done some test regarding the subject, I found that this bug occurs when in entities Tenant and TenantDataResource no reference to tenant 'DEMO1' exists. 

> ofbiz hangs on installing tenant database 
> ------------------------------------------
>
>                 Key: OFBIZ-5729
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5729
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Wai
>            Assignee: Adrian Crum
>         Attachments: ofbiz console output-with bug.log, ofbiz console output-with fix.log, ofbiz-5729.patch, ofbiz-5729.patch
>
>
> When installing data into a tenant database, ofbiz hangs.
> Using the following command line.
> $ ant load-tenant-data-readers -Ddata-readers=seed -DtenantId=DEMO1
> The problem is that ofbiz uses DelegatorFactory.getDelegator() to find/create the tenant delegator, asynchronously, for the target tenant database using a single daemon thread.  As part of the tenant delegator creation, it needs to find/create a base delegator.  When the base delegator is intially absent, ofbiz will block trying to create one by using the same daemon thread--which is already being used.  Hence, ofbiz is deadlocked.
> The solution is to make sure that a base delegator is always created first before a find/create tenant delegator is attempted.



--
This message was sent by Atlassian JIRA
(v6.2#6252)