[jira] Created: (OFBIZ-139) "Webtools -> Clear All Caches" clears mcaCache and it never reloads

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

[jira] Created: (OFBIZ-139) "Webtools -> Clear All Caches" clears mcaCache and it never reloads

Nicolas Malin (Jira)
"Webtools -> Clear All Caches" clears mcaCache and it never reloads
-------------------------------------------------------------------

                 Key: OFBIZ-139
                 URL: http://issues.apache.org/jira/browse/OFBIZ-139
             Project: OFBiz (The Open for Business Project)
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Scott Gray
            Priority: Minor


Hi All

Clearing the caches in webtools obviously clears the mcaCache but the problem is it never seems to be reloaded unless you restart the server.  I know a call to ServiceMcaUtil.reloadConfig() will do the trick but I'm unsure about the best place to put the call.  Any suggestions or patches would be appreciated.

Thanks
Scott

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-139) "Webtools -> Clear All Caches" clears mcaCache and it never reloads

Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-139?page=comments#action_12426128 ]
           
David E. Jones commented on OFBIZ-139:
--------------------------------------

At the moment this is true for a few different things, not just the MCA rules.

In general right now in OFBiz entity definitions, service definitions, and various other entity and service engine files are not reloadable at run time.

Perhaps the best fix is to add a comment stating that these shouldn't be manually cleared?

> "Webtools -> Clear All Caches" clears mcaCache and it never reloads
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-139
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-139
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Minor
>
> Hi All
> Clearing the caches in webtools obviously clears the mcaCache but the problem is it never seems to be reloaded unless you restart the server.  I know a call to ServiceMcaUtil.reloadConfig() will do the trick but I'm unsure about the best place to put the call.  Any suggestions or patches would be appreciated.
> Thanks
> Scott

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-139) "Webtools -> Clear All Caches" clears mcaCache and it never reloads

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-139?page=comments#action_12426143 ]
           
Scott Gray commented on OFBIZ-139:
----------------------------------

Hi David

My initial thought is why are we allowing the cache to be cleared if it can't be reloaded, wouldn't this cause all sorts of issues?  

I would prefer if we either disabled the clearing of unreloadable caches in webtools or otherwise make them reloadable.  I don't know about the other caches but having reloadable mcas would be a big help during development.

Regards
Scott

> "Webtools -> Clear All Caches" clears mcaCache and it never reloads
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-139
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-139
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Minor
>
> Hi All
> Clearing the caches in webtools obviously clears the mcaCache but the problem is it never seems to be reloaded unless you restart the server.  I know a call to ServiceMcaUtil.reloadConfig() will do the trick but I'm unsure about the best place to put the call.  Any suggestions or patches would be appreciated.
> Thanks
> Scott

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-139) "Webtools -> Clear All Caches" clears mcaCache and it never reloads

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-139?page=comments#action_12426145 ]
           
David E. Jones commented on OFBIZ-139:
--------------------------------------

Yes, that would be nice. If someone wants to implement it, please do! It has my vote... ;)

> "Webtools -> Clear All Caches" clears mcaCache and it never reloads
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-139
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-139
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Minor
>
> Hi All
> Clearing the caches in webtools obviously clears the mcaCache but the problem is it never seems to be reloaded unless you restart the server.  I know a call to ServiceMcaUtil.reloadConfig() will do the trick but I'm unsure about the best place to put the call.  Any suggestions or patches would be appreciated.
> Thanks
> Scott

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-139) "Webtools -> Clear All Caches" clears mcaCache and it never reloads

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-139?page=comments#action_12426158 ]
           
Jacques Le Roux commented on OFBIZ-139:
---------------------------------------

I vote for too. I think that in the meantime the comment David suggested should be done.

> "Webtools -> Clear All Caches" clears mcaCache and it never reloads
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-139
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-139
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Minor
>
> Hi All
> Clearing the caches in webtools obviously clears the mcaCache but the problem is it never seems to be reloaded unless you restart the server.  I know a call to ServiceMcaUtil.reloadConfig() will do the trick but I'm unsure about the best place to put the call.  Any suggestions or patches would be appreciated.
> Thanks
> Scott

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-139) "Webtools -> Clear All Caches" clears mcaCache and it never reloads

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-139?page=comments#action_12426159 ]
           
Scott Gray commented on OFBIZ-139:
----------------------------------

Hi David/Jacques

I'm happy to create a patch to reload mca rules at run time, but I wouldn't have a clue which other caches are not reloaded.  

If someone knows which caches they are I'd be happy to disable clearing them from webtools, and then at a later point work on getting them to reload.

Regards
Scott

> "Webtools -> Clear All Caches" clears mcaCache and it never reloads
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-139
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-139
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Minor
>
> Hi All
> Clearing the caches in webtools obviously clears the mcaCache but the problem is it never seems to be reloaded unless you restart the server.  I know a call to ServiceMcaUtil.reloadConfig() will do the trick but I'm unsure about the best place to put the call.  Any suggestions or patches would be appreciated.
> Thanks
> Scott

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-139) "Webtools -> Clear All Caches" clears mcaCache and it never reloads

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-139?page=comments#action_12426173 ]
           
Jacques Le Roux commented on OFBIZ-139:
---------------------------------------

Thanks Scott,

But sorry I have no valuable knowledge about cache in OFBiz :/

> "Webtools -> Clear All Caches" clears mcaCache and it never reloads
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-139
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-139
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Minor
>
> Hi All
> Clearing the caches in webtools obviously clears the mcaCache but the problem is it never seems to be reloaded unless you restart the server.  I know a call to ServiceMcaUtil.reloadConfig() will do the trick but I'm unsure about the best place to put the call.  Any suggestions or patches would be appreciated.
> Thanks
> Scott

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-139) "Webtools -> Clear All Caches" clears mcaCache and it never reloads

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-139?page=comments#action_12426445 ]
           
David E. Jones commented on OFBIZ-139:
--------------------------------------

Okay, this should be fixed now in SVN rev 429590.

Scott or Jacques: could test it in the scenario where you found the problem and if it is now working as expected add a comment so we can close this issue?

> "Webtools -> Clear All Caches" clears mcaCache and it never reloads
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-139
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-139
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Minor
>
> Hi All
> Clearing the caches in webtools obviously clears the mcaCache but the problem is it never seems to be reloaded unless you restart the server.  I know a call to ServiceMcaUtil.reloadConfig() will do the trick but I'm unsure about the best place to put the call.  Any suggestions or patches would be appreciated.
> Thanks
> Scott

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-139) "Webtools -> Clear All Caches" clears mcaCache and it never reloads

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
    [ http://issues.apache.org/jira/browse/OFBIZ-139?page=comments#action_12426502 ]
           
Scott Gray commented on OFBIZ-139:
----------------------------------

Hi David

Works great, thanks for your help

Regards
Scott

> "Webtools -> Clear All Caches" clears mcaCache and it never reloads
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-139
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-139
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>            Priority: Minor
>
> Hi All
> Clearing the caches in webtools obviously clears the mcaCache but the problem is it never seems to be reloaded unless you restart the server.  I know a call to ServiceMcaUtil.reloadConfig() will do the trick but I'm unsure about the best place to put the call.  Any suggestions or patches would be appreciated.
> Thanks
> Scott

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-139) "Webtools -> Clear All Caches" clears mcaCache and it never reloads

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)
     [ http://issues.apache.org/jira/browse/OFBIZ-139?page=all ]

David E. Jones closed OFBIZ-139.
--------------------------------

    Fix Version/s: SVN trunk
       Resolution: Fixed
         Assignee: David E. Jones

> "Webtools -> Clear All Caches" clears mcaCache and it never reloads
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-139
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-139
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Scott Gray
>         Assigned To: David E. Jones
>            Priority: Minor
>             Fix For: SVN trunk
>
>
> Hi All
> Clearing the caches in webtools obviously clears the mcaCache but the problem is it never seems to be reloaded unless you restart the server.  I know a call to ServiceMcaUtil.reloadConfig() will do the trick but I'm unsure about the best place to put the call.  Any suggestions or patches would be appreciated.
> Thanks
> Scott

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira