[jira] [Commented] (OAK-6859) Schedule Revision GC in DocumentNodeStoreService

2017-10-31 Thread Chetan Mehrotra (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-6859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16233615#comment-16233615
 ] 

Chetan Mehrotra commented on OAK-6859:
--

Okie. I got confused by reference to Quartz classes. Looks like they are only 
used for validating the cron expressions and not for actual scheduling

> Schedule Revision GC in DocumentNodeStoreService
> 
>
> Key: OAK-6859
> URL: https://issues.apache.org/jira/browse/OAK-6859
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Marcel Reutegger
>Assignee: Marcel Reutegger
>Priority: Major
> Fix For: 1.8, 1.7.11
>
>
> Introduce scheduling of the Revision GC task in DocumentNodeStoreService. 
> There are already other tasks scheduled, like Journal GC and recovery when 
> another cluster node crashes.
> I'd like to enable Continuous Revision GC on MongoDB by default and schedule 
> Revision GC on RDB once a day at 2 AM. This avoids the need to trigger the GC 
> externally.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-6859) Schedule Revision GC in DocumentNodeStoreService

2017-10-31 Thread Marcel Reutegger (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-6859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16226980#comment-16226980
 ] 

Marcel Reutegger commented on OAK-6859:
---

Updated documentation: http://svn.apache.org/r1813891

> Schedule Revision GC in DocumentNodeStoreService
> 
>
> Key: OAK-6859
> URL: https://issues.apache.org/jira/browse/OAK-6859
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Marcel Reutegger
>Assignee: Marcel Reutegger
> Fix For: 1.8
>
>
> Introduce scheduling of the Revision GC task in DocumentNodeStoreService. 
> There are already other tasks scheduled, like Journal GC and recovery when 
> another cluster node crashes.
> I'd like to enable Continuous Revision GC on MongoDB by default and schedule 
> Revision GC on RDB once a day at 2 AM. This avoids the need to trigger the GC 
> externally.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-6859) Schedule Revision GC in DocumentNodeStoreService

2017-10-31 Thread Marcel Reutegger (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-6859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16226934#comment-16226934
 ] 

Marcel Reutegger commented on OAK-6859:
---

It relies on the Sling Scheduler to only run on a single cluster node.

> Schedule Revision GC in DocumentNodeStoreService
> 
>
> Key: OAK-6859
> URL: https://issues.apache.org/jira/browse/OAK-6859
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Marcel Reutegger
>Assignee: Marcel Reutegger
> Fix For: 1.8
>
>
> Introduce scheduling of the Revision GC task in DocumentNodeStoreService. 
> There are already other tasks scheduled, like Journal GC and recovery when 
> another cluster node crashes.
> I'd like to enable Continuous Revision GC on MongoDB by default and schedule 
> Revision GC on RDB once a day at 2 AM. This avoids the need to trigger the GC 
> externally.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-6859) Schedule Revision GC in DocumentNodeStoreService

2017-10-31 Thread Chetan Mehrotra (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-6859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16226918#comment-16226918
 ] 

Chetan Mehrotra commented on OAK-6859:
--

[~mreutegg] Would this task run on each cluster node? So far such task were run 
as singleton in a cluster and we relied on Sling Scheduler to ensure that

> Schedule Revision GC in DocumentNodeStoreService
> 
>
> Key: OAK-6859
> URL: https://issues.apache.org/jira/browse/OAK-6859
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Marcel Reutegger
>Assignee: Marcel Reutegger
> Fix For: 1.8
>
>
> Introduce scheduling of the Revision GC task in DocumentNodeStoreService. 
> There are already other tasks scheduled, like Journal GC and recovery when 
> another cluster node crashes.
> I'd like to enable Continuous Revision GC on MongoDB by default and schedule 
> Revision GC on RDB once a day at 2 AM. This avoids the need to trigger the GC 
> externally.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OAK-6859) Schedule Revision GC in DocumentNodeStoreService

2017-10-31 Thread Marcel Reutegger (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-6859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16226906#comment-16226906
 ] 

Marcel Reutegger commented on OAK-6859:
---

Implemented in trunk: http://svn.apache.org/r1813888

> Schedule Revision GC in DocumentNodeStoreService
> 
>
> Key: OAK-6859
> URL: https://issues.apache.org/jira/browse/OAK-6859
> Project: Jackrabbit Oak
>  Issue Type: Improvement
>  Components: documentmk
>Reporter: Marcel Reutegger
>Assignee: Marcel Reutegger
> Fix For: 1.8
>
>
> Introduce scheduling of the Revision GC task in DocumentNodeStoreService. 
> There are already other tasks scheduled, like Journal GC and recovery when 
> another cluster node crashes.
> I'd like to enable Continuous Revision GC on MongoDB by default and schedule 
> Revision GC on RDB once a day at 2 AM. This avoids the need to trigger the GC 
> externally.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)