commit | d9788198588c1db60ada814ff92269ed5e369255 | [log] [tgz] |
---|---|---|
author | stefan-egli <stefanegli@apache.org> | Tue Mar 14 10:17:53 2023 +0100 |
committer | GitHub <noreply@github.com> | Tue Mar 14 10:17:53 2023 +0100 |
tree | 8f593c724cedefc34379c8d0cefbfc1a060cd6e6 | |
parent | f6391e2c37fa4dc33705e92982a07635a90cf9a5 [diff] |
SLING-10854 : introducing SlingIdCleanupTask to clean up old slingIds… (#13) * SLING-10854 : introducing SlingIdCleanupTask to clean up old slingIds under /var/discovery/oak automatically * SLING-10854 : more test coverage * SLING-10854 : more test coverage * SLING-10854 : logging cleanup * SLING-10854 : modifier cleanup * SLING-10854 : added run counter to log info * SLING-10854 : fix variable name Co-authored-by: Jörg Hoh <joerghoh@users.noreply.github.com> * SLING-10854 : fix rename change * SLING-10854 : log scheduledDate for convenience * SLING-10854 : use resolver.getResource rather than ResourceHelper.getOrCreateResource to avoid unintended creation of resources * SLING-10854 : remove unnecessary copy-paste-leftover revert * SLING-10854 : beautify try catch clause * SLING-10854 : more test coverage * SLING-10854 : orphaned syncTokens support added * SLING-10854 : disabled by default and introduced system property org.apache.sling.discovery.oak.slingidcleanup.enabled to enable * SLING-10854 : added a minimal delay between a successful run and a follow-up run - to reduce unnecessary load on the repository for likely empty cleanup executions * SLING-10854 : lower a logger to debug * SLING-10854 : fix description Co-authored-by: Jörg Hoh <joerghoh@users.noreply.github.com> * SLING-10854 : test stability improvement * SLING-10854 : avoid deleting slingIds ever seen by then leader * SLING-10854 : minor comment fix * SLING-10854 : shrink cleanup method size * SLING-10854 : reduce log.infos * SLING-10854 : getActiveSlingIdsFrom extracted * SLING-10854 : some more code reductions * SLING-10854 : added comment about not considering a slingId garbage if it was ever seen by the then leader * SLING-10854 : minor javadoc rewording * SLING-10854 : and some docu about the odd choice of 13h min delay added * SLING-10854 : shorten config names * SLING-10854 : rename getActiveSlignIdsFrom * SLING-10854 : use streams rather than verbose for loops Co-authored-by: Rishabh Kumar <rishabhdaim1991@gmail.com> * SLING-10854 : fix stream code * SLING-10854 : renamed method to topologyChanged * SLING-10854 : fixed seenInstances concurrency * SLING-10854 : log message improved * SLING-10854 : reformating only --------- Co-authored-by: Jörg Hoh <joerghoh@users.noreply.github.com> Co-authored-by: Rishabh Kumar <rishabhdaim1991@gmail.com>
This module is part of the Apache Sling project.
Implementation of Apache Sling Discovery based on Jackrabbit Oak using its discovery-lite descriptor for in-cluster view detection and a TopologyView through HTTP POST heartbeats announcing sub-topologies to each other.