[jira] Created: (OFBIZ-4202) Distributed Cache Clear is broken in current versions of OFBiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-4202) Distributed Cache Clear is broken in current versions of OFBiz

Nicolas Malin (Jira)
Distributed Cache Clear is broken in current versions of OFBiz
--------------------------------------------------------------

                 Key: OFBIZ-4202
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4202
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: Release Branch 10.04, SVN trunk
            Reporter: Martin Kreidenweis


Setting distributed-cache-clear-enabled="true" for the delegator in entityengine.xml doesn't work any more: OFBiz goes into an infinite loop during startup. (Only for regular startup, not e.g. for {{ant run-install}} startup).

I think I already tracked down where it broke: [Changeset 921990|https://fisheye6.atlassian.com/changelog/ofbiz?cs=921990] on 2010-03-11 in OFBiz trunk. Before this change OFBiz still starts up, after this change you get the infinite loop. This means Release 10.04 is already broken.

Unfortunately I don't have time currently to investigate further, maybe at a later time.

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-4202) Distributed Cache Clear is broken in current versions of OFBiz

Nicolas Malin (Jira)

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

Jacques Le Roux commented on OFBIZ-4202:
----------------------------------------

Thanks for report Martin,

So, only reverting r921990 is enough to get it working again OOTB?

> Distributed Cache Clear is broken in current versions of OFBiz
> --------------------------------------------------------------
>
>                 Key: OFBIZ-4202
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4202
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Martin Kreidenweis
>
> Setting distributed-cache-clear-enabled="true" for the delegator in entityengine.xml doesn't work any more: OFBiz goes into an infinite loop during startup. (Only for regular startup, not e.g. for {{ant run-install}} startup).
> I think I already tracked down where it broke: [Changeset 921990|https://fisheye6.atlassian.com/changelog/ofbiz?cs=921990] on 2010-03-11 in OFBiz trunk. Before this change OFBiz still starts up, after this change you get the infinite loop. This means Release 10.04 is already broken.
> Unfortunately I don't have time currently to investigate further, maybe at a later time.

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-4202) Distributed Cache Clear is broken in current versions of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Sascha Rodekamp commented on OFBIZ-4202:
----------------------------------------

Hi Martin, hi Jacques,

i've two related issues here: OFBIZ-3987 and OFBIZ-3999 . I think there are some more issues in the distributed-cache-clear which can be improved.

> Distributed Cache Clear is broken in current versions of OFBiz
> --------------------------------------------------------------
>
>                 Key: OFBIZ-4202
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4202
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Martin Kreidenweis
>
> Setting distributed-cache-clear-enabled="true" for the delegator in entityengine.xml doesn't work any more: OFBiz goes into an infinite loop during startup. (Only for regular startup, not e.g. for {{ant run-install}} startup).
> I think I already tracked down where it broke: [Changeset 921990|https://fisheye6.atlassian.com/changelog/ofbiz?cs=921990] on 2010-03-11 in OFBiz trunk. Before this change OFBiz still starts up, after this change you get the infinite loop. This means Release 10.04 is already broken.
> Unfortunately I don't have time currently to investigate further, maybe at a later time.

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-4202) Distributed Cache Clear is broken in current versions of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Martin Kreidenweis commented on OFBIZ-4202:
-------------------------------------------

Hi,

Sascha, I guess you actually reported the same issue in OFBIZ-3987. So this bug is a duplicate.

I did not try reverting changeset 921990 and did not check why it causes the issue. I just found out that this is where it broke while doing a dumb binary search on the version history to narrow it down.

So I guess we should review Sascha's changes in OFBIZ-3987 to see if they're a good fix. During our tests, as a workaround, we added lazy initialization in {{EntityCacheServices}}: we wouldn't call {{EntityServiceFactory.getLocalDispatcher(delegator)}} right away, but only when it's first needed.

It's not a high priority issue for us currently. Still, it would be nice if it worked again out of the box in OFBiz.

Martin

> Distributed Cache Clear is broken in current versions of OFBiz
> --------------------------------------------------------------
>
>                 Key: OFBIZ-4202
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4202
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Martin Kreidenweis
>
> Setting distributed-cache-clear-enabled="true" for the delegator in entityengine.xml doesn't work any more: OFBiz goes into an infinite loop during startup. (Only for regular startup, not e.g. for {{ant run-install}} startup).
> I think I already tracked down where it broke: [Changeset 921990|https://fisheye6.atlassian.com/changelog/ofbiz?cs=921990] on 2010-03-11 in OFBiz trunk. Before this change OFBiz still starts up, after this change you get the infinite loop. This means Release 10.04 is already broken.
> Unfortunately I don't have time currently to investigate further, maybe at a later time.

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-4202) Distributed Cache Clear is broken in current versions of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Jacques Le Roux commented on OFBIZ-4202:
----------------------------------------

Yes, I will need it soon also...

> Distributed Cache Clear is broken in current versions of OFBiz
> --------------------------------------------------------------
>
>                 Key: OFBIZ-4202
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4202
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Martin Kreidenweis
>
> Setting distributed-cache-clear-enabled="true" for the delegator in entityengine.xml doesn't work any more: OFBiz goes into an infinite loop during startup. (Only for regular startup, not e.g. for {{ant run-install}} startup).
> I think I already tracked down where it broke: [Changeset 921990|https://fisheye6.atlassian.com/changelog/ofbiz?cs=921990] on 2010-03-11 in OFBiz trunk. Before this change OFBiz still starts up, after this change you get the infinite loop. This means Release 10.04 is already broken.
> Unfortunately I don't have time currently to investigate further, maybe at a later time.

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-4202) Distributed Cache Clear is broken in current versions of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Michael Reichenbach commented on OFBIZ-4202:
--------------------------------------------

Hi,

I also think that this issue duplicates [OFBIZ-3987|https://issues.apache.org/jira/browse/OFBIZ-3987], which also provides a proper fix.

Anyway, here is a stack trace to see the loop:
{code:java}
...
DelegatorFactoryImpl.getInstance(String) line: 33
DelegatorFactoryImpl.getInstance(Object) line: 25
UtilObject.getObjectFromFactory(Class<Factory<R,A>>, A) line: 202
DelegatorFactory.getDelegator(String) line: 47
EntityExpr.checkRhsType(ModelEntity, Delegator) line: 218
EntityExpr.makeWhereString(ModelEntity, List<EntityConditionParam>, DatasourceInfo) line: 136
EntityJoinOperator.addSqlValue(StringBuilder, ModelEntity, List<EntityConditionParam>, List<EntityCondition>, DatasourceInfo) line: 75
EntityConditionList<T>(EntityConditionListBase<T>).makeWhereString(ModelEntity, List<EntityConditionParam>, DatasourceInfo) line: 98
EntityJoinOperator.addSqlValue(StringBuilder, ModelEntity, List<EntityConditionParam>, List<EntityCondition>, DatasourceInfo) line: 75
EntityConditionList<T>(EntityConditionListBase<T>).makeWhereString(ModelEntity, List<EntityConditionParam>, DatasourceInfo) line: 98
GenericDAO.makeConditionWhereString(StringBuilder, String, ModelEntity, EntityCondition, List<EntityCondition>, List<EntityConditionParam>) line: 790
GenericDAO.selectListIteratorByCondition(ModelEntity, EntityCondition, EntityCondition, Collection<String>, List<String>, EntityFindOptions) line: 697
GenericHelperDAO.findListIteratorByCondition(ModelEntity, EntityCondition, EntityCondition, Collection<String>, List<String>, EntityFindOptions) line: 139
GenericDelegator.find(String, EntityCondition, EntityCondition, Set<String>, List<String>, EntityFindOptions) line: 1742
GenericDelegator.findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) line: 1777
JobManager.reloadCrashedJobs() line: 217
JobPoller.<init>(JobManager, boolean) line: 63
JobManager.<init>(Delegator, boolean) line: 81
JobManager.getInstance(Delegator, boolean) line: 89
ServiceDispatcher.<init>(Delegator, boolean, boolean, boolean) line: 113
ServiceDispatcher.<init>(Delegator) line: 130
ServiceDispatcher.getInstance(String, DispatchContext, Delegator) line: 164
ServiceDispatcher.getInstance(String, Delegator) line: 139
GenericDispatcher.getLocalDispatcher(String, Delegator, Collection<URL>, ClassLoader, ServiceDispatcher) line: 78
GenericDispatcher.getLocalDispatcher(String, Delegator) line: 43
EntityServiceFactory.getLocalDispatcher(Delegator) line: 34
EntityCacheServices.setDelegator(Delegator, String) line: 53
GenericDelegator.<init>(String) line: 293
DelegatorFactoryImpl.getInstance(String) line: 33
DelegatorFactoryImpl.getInstance(Object) line: 25
UtilObject.getObjectFromFactory(Class<Factory<R,A>>, A) line: 202
DelegatorFactory.getDelegator(String) line: 47
CatalinaContainer.init(String[], String) line: 174
ContainerLoader.loadContainer(ContainerConfig$Container, String[]) line: 188
ContainerLoader.load(Start$Config, String[]) line: 65
Start.initStartLoaders() line: 259
Start.init(String[], boolean) line: 96
Start.main(String[]) line: 410
{code}

> Distributed Cache Clear is broken in current versions of OFBiz
> --------------------------------------------------------------
>
>                 Key: OFBIZ-4202
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4202
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Martin Kreidenweis
>
> Setting distributed-cache-clear-enabled="true" for the delegator in entityengine.xml doesn't work any more: OFBiz goes into an infinite loop during startup. (Only for regular startup, not e.g. for {{ant run-install}} startup).
> I think I already tracked down where it broke: [Changeset 921990|https://fisheye6.atlassian.com/changelog/ofbiz?cs=921990] on 2010-03-11 in OFBiz trunk. Before this change OFBiz still starts up, after this change you get the infinite loop. This means Release 10.04 is already broken.
> Unfortunately I don't have time currently to investigate further, maybe at a later time.

--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Closed] (OFBIZ-4202) Distributed Cache Clear is broken in current versions of OFBiz

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-4202.
----------------------------------

    Resolution: Duplicate
      Assignee: Jacques Le Roux

> Distributed Cache Clear is broken in current versions of OFBiz
> --------------------------------------------------------------
>
>                 Key: OFBIZ-4202
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4202
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 10.04, SVN trunk
>            Reporter: Martin Kreidenweis
>            Assignee: Jacques Le Roux
>
> Setting distributed-cache-clear-enabled="true" for the delegator in entityengine.xml doesn't work any more: OFBiz goes into an infinite loop during startup. (Only for regular startup, not e.g. for {{ant run-install}} startup).
> I think I already tracked down where it broke: [Changeset 921990|https://fisheye6.atlassian.com/changelog/ofbiz?cs=921990] on 2010-03-11 in OFBiz trunk. Before this change OFBiz still starts up, after this change you get the infinite loop. This means Release 10.04 is already broken.
> Unfortunately I don't have time currently to investigate further, maybe at a later time.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira