sling-org-apache-sling-discovery-impl.git
2 months agotrivial: added license header to *.md files master
Radu Cotescu [Thu, 20 Sep 2018 09:09:02 +0000 (11:09 +0200)] 
trivial: added license header to *.md files

2 months agoSLING-7215 - [nice-to-have] Add a CONTRIBUTING file to every module
Radu Cotescu [Wed, 19 Sep 2018 16:29:17 +0000 (18:29 +0200)] 
SLING-7215 - [nice-to-have] Add a CONTRIBUTING file to every module

2 months agoSLING-7216 - [nice-to-have] Add a CODE_OF_CONDUCT file to every module
Radu Cotescu [Wed, 19 Sep 2018 16:04:00 +0000 (18:04 +0200)] 
SLING-7216 - [nice-to-have] Add a CODE_OF_CONDUCT file to every module

6 months agoUpdating badges for org-apache-sling-discovery-impl
Dan Klco [Fri, 8 Jun 2018 16:50:30 +0000 (12:50 -0400)] 
Updating badges for org-apache-sling-discovery-impl

7 months agoSLING-7653 Add missing OSGi capability
Oliver Lietz [Sun, 6 May 2018 10:33:41 +0000 (12:33 +0200)] 
SLING-7653 Add missing OSGi capability

13 months agoSLING-7213 - Add a default .gitignore file to every module
Robert Munteanu [Tue, 24 Oct 2017 11:41:00 +0000 (13:41 +0200)] 
SLING-7213 - Add a default .gitignore file to every module

13 months agoSLING-7214 - Add the LICENSE file to every module
Robert Munteanu [Mon, 23 Oct 2017 16:38:23 +0000 (18:38 +0200)] 
SLING-7214 - Add the LICENSE file to every module

13 months agoFix typo in pom.xml : conncetion should be connection
Robert Munteanu [Mon, 23 Oct 2017 09:06:30 +0000 (12:06 +0300)] 
Fix typo in pom.xml : conncetion should be connection

13 months agoSLING-7162 - Update SCM information in all POM files to reference Git
Robert Munteanu [Fri, 20 Oct 2017 17:13:13 +0000 (19:13 +0200)] 
SLING-7162 - Update SCM information in all POM files to reference Git

14 months agoSLING-7167 Adjust READMEs
Oliver Lietz [Tue, 3 Oct 2017 09:20:59 +0000 (09:20 +0000)] 
SLING-7167 Adjust READMEs

add missing README

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1810686 13f79535-47bb-0310-9956-ffa450edef68

18 months agoSLING-6888: Remove commons.json and org.json excludes.
Karl Pauls [Tue, 30 May 2017 20:32:49 +0000 (20:32 +0000)] 
SLING-6888: Remove commons.json and org.json excludes.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1796937 13f79535-47bb-0310-9956-ffa450edef68

19 months ago[maven-release-plugin] prepare for next development iteration
Karl Pauls [Mon, 8 May 2017 10:06:02 +0000 (10:06 +0000)] 
[maven-release-plugin] prepare for next development iteration

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1794313 13f79535-47bb-0310-9956-ffa450edef68

19 months ago[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.12
Karl Pauls [Mon, 8 May 2017 10:05:45 +0000 (10:05 +0000)] 
[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.12

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1794311 13f79535-47bb-0310-9956-ffa450edef68

19 months agoupdate to org.apache.sling.commons.johnzon 1.0.0
Stefan Seifert [Wed, 3 May 2017 14:35:24 +0000 (14:35 +0000)] 
update to org.apache.sling.commons.johnzon 1.0.0

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1793655 13f79535-47bb-0310-9956-ffa450edef68

20 months agoSLING-6691: Replace commons.json usage in org.apache.sling.discovery.impl
Karl Pauls [Tue, 28 Mar 2017 13:03:10 +0000 (13:03 +0000)] 
SLING-6691: Replace commons.json usage in org.apache.sling.discovery.impl

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1789119 13f79535-47bb-0310-9956-ffa450edef68

2 years agono-jira : switching to discovery.commons 1.0.19-SNAPSHOT and discovery.base 1.1.7...
Stefan Egli [Tue, 15 Nov 2016 12:59:46 +0000 (12:59 +0000)] 
no-jira : switching to discovery.commons 1.0.19-SNAPSHOT and discovery.base 1.1.7-SNAPSHOT

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1769819 13f79535-47bb-0310-9956-ffa450edef68

2 years ago[maven-release-plugin] prepare for next development iteration
Stefan Egli [Tue, 15 Nov 2016 12:55:34 +0000 (12:55 +0000)] 
[maven-release-plugin] prepare for next development iteration

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1769817 13f79535-47bb-0310-9956-ffa450edef68

2 years ago[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.10
Stefan Egli [Tue, 15 Nov 2016 12:55:18 +0000 (12:55 +0000)] 
[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.10

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1769815 13f79535-47bb-0310-9956-ffa450edef68

2 years agono-jira : switching to in-release discovery.commons 1.0.18 and discovery.base 1.1.6
Stefan Egli [Tue, 15 Nov 2016 12:51:57 +0000 (12:51 +0000)] 
no-jira : switching to in-release discovery.commons 1.0.18 and discovery.base 1.1.6

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1769813 13f79535-47bb-0310-9956-ffa450edef68

2 years agoSLING-5231 : remove getAdministrativeResourceResolver from discovery components ...
Stefan Egli [Tue, 15 Nov 2016 12:38:35 +0000 (12:38 +0000)] 
SLING-5231 : remove getAdministrativeResourceResolver from discovery components : merged patches from Carsten

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1769802 13f79535-47bb-0310-9956-ffa450edef68

2 years agoSLING-6055 Discovery: Use test scope for sling-mock dependency
Stefan Seifert [Thu, 15 Sep 2016 12:59:09 +0000 (12:59 +0000)] 
SLING-6055 Discovery: Use test scope for sling-mock dependency

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1760925 13f79535-47bb-0310-9956-ffa450edef68

2 years agoSLING-5918 : discovery: catching a NPE in a test
Stefan Egli [Mon, 15 Aug 2016 12:32:53 +0000 (12:32 +0000)] 
SLING-5918 : discovery: catching a NPE in a test

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1756373 13f79535-47bb-0310-9956-ffa450edef68

2 years ago[maven-release-plugin] prepare for next development iteration
Oliver Lietz [Thu, 14 Jul 2016 11:18:41 +0000 (11:18 +0000)] 
[maven-release-plugin] prepare for next development iteration

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1752622 13f79535-47bb-0310-9956-ffa450edef68

2 years ago[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.8
Oliver Lietz [Thu, 14 Jul 2016 11:18:25 +0000 (11:18 +0000)] 
[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.8

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1752620 13f79535-47bb-0310-9956-ffa450edef68

2 years agouse stable release (Jackrabbit)
Oliver Lietz [Wed, 13 Jul 2016 13:38:50 +0000 (13:38 +0000)] 
use stable release (Jackrabbit)

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1752430 13f79535-47bb-0310-9956-ffa450edef68

2 years agouse org.apache.sling.commons.testing 2.0.26
Oliver Lietz [Wed, 13 Jul 2016 13:35:41 +0000 (13:35 +0000)] 
use org.apache.sling.commons.testing 2.0.26

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1752428 13f79535-47bb-0310-9956-ffa450edef68

2 years agoSLING-5598 : exclude slow running test by newly introduced Slow junit category -...
Stefan Egli [Wed, 27 Apr 2016 09:25:49 +0000 (09:25 +0000)] 
SLING-5598 : exclude slow running test by newly introduced Slow junit category - to run them nevertheless use -PincludeSlowTests

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1741177 13f79535-47bb-0310-9956-ffa450edef68

2 years agoSLING-5526 Remove Launchpad API dependency from Discovery Impl
Oliver Lietz [Wed, 17 Feb 2016 17:14:43 +0000 (17:14 +0000)] 
SLING-5526 Remove Launchpad API dependency from Discovery Impl

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1730878 13f79535-47bb-0310-9956-ffa450edef68

2 years agoSLING-5331 : updating sling.commons.testing version to 2.0.24 which thanks to SLING...
Stefan Egli [Tue, 9 Feb 2016 12:28:34 +0000 (12:28 +0000)] 
SLING-5331 : updating sling.commons.testing version to 2.0.24 which thanks to SLING-5341 updates to a recent jackrabbit version - the old version used previously - 2.2.x - was likely the reason for the failed test

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1729370 13f79535-47bb-0310-9956-ffa450edef68

2 years agoSLING-5298 : instance i2 was not properly closed after this test - which leaks into...
Stefan Egli [Tue, 9 Feb 2016 12:19:58 +0000 (12:19 +0000)] 
SLING-5298 : instance i2 was not properly closed after this test - which leaks into other tests, if only in the log files

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1729369 13f79535-47bb-0310-9956-ffa450edef68

2 years agoSwitch to parent pom 26
Carsten Ziegeler [Sun, 3 Jan 2016 14:07:46 +0000 (14:07 +0000)] 
Switch to parent pom 26

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1722720 13f79535-47bb-0310-9956-ffa450edef68

2 years agoRemove type from bundle dependencies
Carsten Ziegeler [Mon, 21 Dec 2015 11:05:09 +0000 (11:05 +0000)] 
Remove type from bundle dependencies

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1721125 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[maven-release-plugin] prepare for next development iteration
Stefan Egli [Mon, 23 Nov 2015 16:43:15 +0000 (16:43 +0000)] 
[maven-release-plugin] prepare for next development iteration

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1715875 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.6
Stefan Egli [Mon, 23 Nov 2015 16:42:59 +0000 (16:42 +0000)] 
[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.6

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1715873 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5322 : made reference to SyncTokenService mandatory
Stefan Egli [Mon, 23 Nov 2015 16:23:51 +0000 (16:23 +0000)] 
SLING-5322 : made reference to SyncTokenService mandatory

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1715867 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[maven-release-plugin] prepare for next development iteration
Stefan Egli [Mon, 23 Nov 2015 15:59:42 +0000 (15:59 +0000)] 
[maven-release-plugin] prepare for next development iteration

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1715862 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.4
Stefan Egli [Mon, 23 Nov 2015 15:59:25 +0000 (15:59 +0000)] 
[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.4

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1715860 13f79535-47bb-0310-9956-ffa450edef68

3 years agono-jira : changed discovery bundle dependencies back to released versions
Stefan Egli [Mon, 23 Nov 2015 15:40:18 +0000 (15:40 +0000)] 
no-jira : changed discovery bundle dependencies back to released versions

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1715853 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5321 : syncTokenService dependency should be mandatory, not optional, to avoid...
Stefan Egli [Mon, 23 Nov 2015 14:02:06 +0000 (14:02 +0000)] 
SLING-5321 : syncTokenService dependency should be mandatory, not optional, to avoid inconsistency between availability of the syncTokenService in a cluster

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1715827 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5313 : logging refined for this kind of test failure
Stefan Egli [Thu, 19 Nov 2015 09:24:36 +0000 (09:24 +0000)] 
SLING-5313 : logging refined for this kind of test failure

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1715133 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5310: adding cancelDelaying to MinEventDelayHandler - plus added a testReactiva...
Stefan Egli [Wed, 18 Nov 2015 12:12:21 +0000 (12:12 +0000)] 
SLING-5310: adding cancelDelaying to MinEventDelayHandler - plus added a testReactivate test method which checks the scenario described in this ticket. Plus also added somewhat more logging to the HeartbeatHandler to help debugging should something similar reoccur

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1714984 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5306 : removing observation listener in stopVoting too, not only stopping it...
Stefan Egli [Tue, 17 Nov 2015 13:23:33 +0000 (13:23 +0000)] 
SLING-5306 : removing observation listener in stopVoting too, not only stopping it. plus more logging in stopVoting and resetRepo

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1714778 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5306 : avoid instance surviving a this test by properly shutting test down
Stefan Egli [Tue, 17 Nov 2015 13:22:49 +0000 (13:22 +0000)] 
SLING-5306 : avoid instance surviving a this test by properly shutting test down

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1714777 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5302 : doing test-access to issueHeartbeat synchronized to avoid race-condition...
Stefan Egli [Mon, 16 Nov 2015 16:44:17 +0000 (16:44 +0000)] 
SLING-5302 : doing test-access to issueHeartbeat synchronized to avoid race-condition with newly re-occurring background-job triggered by triggerAsyncConnectorPing

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1714628 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5299: increasing loop count from 3 to 5 to avoid making the assertion just...
Stefan Egli [Mon, 16 Nov 2015 15:16:45 +0000 (15:16 +0000)] 
SLING-5299: increasing loop count from 3 to 5 to avoid making the assertion just a little bit too early - jenkins on apache always seem to show its slow side from time to time

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1714603 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5298 : part 1: close VirtualInstance properly - and avoid the 100sec unnecessar...
Stefan Egli [Mon, 16 Nov 2015 14:55:04 +0000 (14:55 +0000)] 
SLING-5298 : part 1: close VirtualInstance properly - and avoid the 100sec unnecessary sleep

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1714599 13f79535-47bb-0310-9956-ffa450edef68

3 years ago@no-jira adjusting to next iteration: discovery.commons 1.0.5-SNAPSHOT and discovery...
Stefan Egli [Wed, 11 Nov 2015 10:39:24 +0000 (10:39 +0000)] 
@no-jira adjusting to next iteration: discovery.commons 1.0.5-SNAPSHOT and discovery.base 1.1.1-SNAPSHOT

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713807 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[maven-release-plugin] prepare for next development iteration
Stefan Egli [Wed, 11 Nov 2015 09:52:27 +0000 (09:52 +0000)] 
[maven-release-plugin] prepare for next development iteration

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713791 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.2
Stefan Egli [Wed, 11 Nov 2015 09:52:10 +0000 (09:52 +0000)] 
[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.2

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713789 13f79535-47bb-0310-9956-ffa450edef68

3 years ago@no-jira : going back to release-mode by setting discovery.commons to 1.0.4 and disco...
Stefan Egli [Wed, 11 Nov 2015 09:35:22 +0000 (09:35 +0000)] 
@no-jira : going back to release-mode by setting discovery.commons to 1.0.4 and discovery.base to 1.1.0 - SLING-5290 was blocking the release as it caused a test to fail, that's now fixed

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713787 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5290 : minor additional change: moved calculation outside of runner and include...
Stefan Egli [Wed, 11 Nov 2015 09:17:26 +0000 (09:17 +0000)] 
SLING-5290 : minor additional change: moved calculation outside of runner and included in log.info

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713781 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5290 : Ensure heartbeat self-check works with any timeout/interval config
Stefan Egli [Wed, 11 Nov 2015 09:12:14 +0000 (09:12 +0000)] 
SLING-5290 : Ensure heartbeat self-check works with any timeout/interval config

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713780 13f79535-47bb-0310-9956-ffa450edef68

3 years ago@no-jira : reverting release due to spurious test failure - thus upping version depen...
Stefan Egli [Tue, 10 Nov 2015 22:11:25 +0000 (22:11 +0000)] 
@no-jira : reverting release due to spurious test failure - thus upping version dependency on commons/base for now

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713736 13f79535-47bb-0310-9956-ffa450edef68

3 years ago@no-jira : adjusted discovery.commons to 1.0.4 and discovery.base to 1.1.0
Stefan Egli [Tue, 10 Nov 2015 16:46:39 +0000 (16:46 +0000)] 
@no-jira : adjusted discovery.commons to 1.0.4 and discovery.base to 1.1.0

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713692 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5251 : adding debug infos to the topology webconsole re the SyncTokenService...
Stefan Egli [Tue, 10 Nov 2015 16:01:03 +0000 (16:01 +0000)] 
SLING-5251 : adding debug infos to the topology webconsole re the SyncTokenService History

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713675 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5289 : resurrected TopologyChangeHandler as ClusterViewChangeListener - which...
Stefan Egli [Tue, 10 Nov 2015 15:18:07 +0000 (15:18 +0000)] 
SLING-5289 : resurrected TopologyChangeHandler as ClusterViewChangeListener - which now registers at a specific path only, not at the root

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713665 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5251 : add config parameter useSyncTokenService that enables usage of a SyncTok...
Stefan Egli [Tue, 10 Nov 2015 08:36:21 +0000 (08:36 +0000)] 
SLING-5251 : add config parameter useSyncTokenService that enables usage of a SyncTokenService if available. This increases synchronization QoS when for topology changes

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713589 13f79535-47bb-0310-9956-ffa450edef68

3 years agono-jira : fixing a test: catching a runtimeexception that showed up on jenkins
Stefan Egli [Tue, 10 Nov 2015 08:27:14 +0000 (08:27 +0000)] 
no-jira : fixing a test: catching a runtimeexception that showed up on jenkins

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713587 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5280 : change the separate self-check of the HeartbeatHandler to call checkForL...
Stefan Egli [Mon, 9 Nov 2015 17:53:37 +0000 (17:53 +0000)] 
SLING-5280 : change the separate self-check of the HeartbeatHandler to call checkForLocalClusterViewChange only - instead of checkForTopologyChange - reason being that the former does not call into the AnnouncementRegistry which could be blocked in the very same case this self-check should help

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713491 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5286 : re-activate fast topology change propagation
Stefan Egli [Mon, 9 Nov 2015 16:59:33 +0000 (16:59 +0000)] 
SLING-5286 : re-activate fast topology change propagation

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713478 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5284 : use dedicated PeriodicBackgroundJob-thread instead of scheduler
asf-sync-process [Mon, 9 Nov 2015 16:48:47 +0000 (16:48 +0000)] 
SLING-5284 : use dedicated PeriodicBackgroundJob-thread instead of scheduler

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713477 13f79535-47bb-0310-9956-ffa450edef68

3 years agono-jira : just updated a typo in a comment
Stefan Egli [Mon, 9 Nov 2015 14:06:23 +0000 (14:06 +0000)] 
no-jira : just updated a typo in a comment

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713436 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5279 : tests made more stable wrt stopping a VirtualInstance that was likely...
Stefan Egli [Mon, 9 Nov 2015 10:13:58 +0000 (10:13 +0000)] 
SLING-5279 : tests made more stable wrt stopping a VirtualInstance that was likely not done yet and interfered with subsequent test runs

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1713364 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5258 part 2: missed adding the new method getViewStateManager() to DiscoverySer...
Stefan Egli [Thu, 5 Nov 2015 17:08:35 +0000 (17:08 +0000)] 
SLING-5258 part 2: missed adding the new method getViewStateManager() to DiscoveryServiceImpl (due to working on two features simultaneously.. :S ) - this should have been part of r1712784

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712820 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5258 : ensure a new establishedView (with different syncTokenId) always trigger...
Stefan Egli [Thu, 5 Nov 2015 14:27:43 +0000 (14:27 +0000)] 
SLING-5258 : ensure a new establishedView (with different syncTokenId) always triggers a TOPOLOGY_CHANGED - the EstablishedClsuterView therefore now properly sets the syncTokenId using the votingId - that will, thanks to SLING-5256 then achieves the desired result

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712784 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5264 follow-up : adding more logging to analyzeVotings/promote and AbstractDisc...
Stefan Egli [Thu, 5 Nov 2015 13:35:30 +0000 (13:35 +0000)] 
SLING-5264 follow-up : adding more logging to analyzeVotings/promote and AbstractDiscoveryServiceTest to track down still existing issue

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712764 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5243 : reverting previous commit rev r1712584 plus also moving retrieving of...
Stefan Egli [Wed, 4 Nov 2015 21:08:42 +0000 (21:08 +0000)] 
SLING-5243 : reverting previous commit rev r1712584 plus also moving retrieving of the establishedView back to where it was prior to SLING-5195 (rev 1711257) : reason is that SLING-5195 introduced a regression which resulted in the rather ugly retry-loop introduced in r1712584. Now reverting that retry-loop and actually fixing the regression of rev1711257 by retrieving the establishedView *after* checking for ongoing votes - cos otherwise a nasty race condition can show up

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712651 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5244 : added a retry-loop upon getting a test-related exception
Stefan Egli [Wed, 4 Nov 2015 17:51:06 +0000 (17:51 +0000)] 
SLING-5244 : added a retry-loop upon getting a test-related exception

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712599 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5243 : adding a retry-loop for the newly-introduced exception handling around...
Stefan Egli [Wed, 4 Nov 2015 16:29:22 +0000 (16:29 +0000)] 
SLING-5243 : adding a retry-loop for the newly-introduced exception handling around establishedView.matches. Reason for this: looks like during testing you can run into a race-condition where the establishedView is just being created and only half visible - in that case this matches() throws an Exception even though the view will just be there - so doing a 5x500ms retry loop should handle this case. And since this is probably only a testing artifact, it shouldn't have any influence on real usage

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712584 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5244 : adding more debug output to track down the reoccurring timeout problem
Stefan Egli [Wed, 4 Nov 2015 11:01:01 +0000 (11:01 +0000)] 
SLING-5244 : adding more debug output to track down the reoccurring timeout problem

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712530 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5244 : removing the check for each votingHandler to vote no for each other...
Stefan Egli [Tue, 3 Nov 2015 14:37:47 +0000 (14:37 +0000)] 
SLING-5244 : removing the check for each votingHandler to vote no for each other votingHandler's vote - that is not always the case should the concurrent voting happen in an order where one votingHandler can finish analyzeVotings before the other one even starts. In that case there is no NO vote by the initiator as it already finds its voting as winning, so doesnt have to go any further.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712302 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5243 : make tests more resilient by better handling incomplete votings (that...
Stefan Egli [Tue, 3 Nov 2015 13:15:48 +0000 (13:15 +0000)] 
SLING-5243 : make tests more resilient by better handling incomplete votings (that should not occur in real-life though): View.matches/matchesLiveView now throw an Exception when they notice an incomplete structure - such as no members resource - and the callers of these methods properly react: analyzeVotings skips such a voting and the heartbeatHandler switches to TOPOLOGY_CHANGING in this case, but without starting a new vote

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712291 13f79535-47bb-0310-9956-ffa450edef68

3 years ago@no-jira : adjusted discovery.base and .commons dependencies to 1.0.3-SNAPSHOT
Stefan Egli [Mon, 2 Nov 2015 16:59:31 +0000 (16:59 +0000)] 
@no-jira : adjusted discovery.base and .commons dependencies to 1.0.3-SNAPSHOT

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712082 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[maven-release-plugin] prepare for next development iteration
Stefan Egli [Mon, 2 Nov 2015 16:42:30 +0000 (16:42 +0000)] 
[maven-release-plugin] prepare for next development iteration

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712079 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.0
Stefan Egli [Mon, 2 Nov 2015 16:42:13 +0000 (16:42 +0000)] 
[maven-release-plugin] prepare release org.apache.sling.discovery.impl-1.2.0

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712076 13f79535-47bb-0310-9956-ffa450edef68

3 years ago@no-jira : adjusted discovery.base and .commons dependencies to 1.0.2
Stefan Egli [Mon, 2 Nov 2015 16:28:30 +0000 (16:28 +0000)] 
@no-jira : adjusted discovery.base and .commons dependencies to 1.0.2

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712069 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5242 : changed VotingHandler to use an explicit serviceRegistration for registe...
Stefan Egli [Mon, 2 Nov 2015 15:42:16 +0000 (15:42 +0000)] 
SLING-5242 : changed VotingHandler to use an explicit serviceRegistration for registering itself as an EventHandler - which allows to actually filter to only receive /var/discovery/impl

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712050 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5216 : another VotingHandler test case added - changed analyzeVotings return...
Stefan Egli [Mon, 2 Nov 2015 14:41:59 +0000 (14:41 +0000)] 
SLING-5216 : another VotingHandler test case added - changed analyzeVotings return value for this - but no other changes to the analyzeVotings algo or code

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1712016 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5216 / SLING-5195 : more test cases added
Stefan Egli [Thu, 29 Oct 2015 19:03:04 +0000 (19:03 +0000)] 
SLING-5216 / SLING-5195 : more test cases added

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1711331 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5215: removed debug log setting
Stefan Egli [Thu, 29 Oct 2015 16:49:10 +0000 (16:49 +0000)] 
SLING-5215: removed debug log setting

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1711300 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5216 : lowered a log.info to log.debug
Stefan Egli [Thu, 29 Oct 2015 16:48:36 +0000 (16:48 +0000)] 
SLING-5216 : lowered a log.info to log.debug

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1711299 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5215 : test-case added for erroneous getTopology
Stefan Egli [Thu, 29 Oct 2015 14:42:27 +0000 (14:42 +0000)] 
SLING-5215 : test-case added for erroneous getTopology

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1711285 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5195 : test added that simulates slow repository synching
Stefan Egli [Thu, 29 Oct 2015 14:15:14 +0000 (14:15 +0000)] 
SLING-5195 : test added that simulates slow repository synching

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1711270 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5216 : changing the voting algorithm to use correct sorting by votingId not...
Stefan Egli [Thu, 29 Oct 2015 14:13:06 +0000 (14:13 +0000)] 
SLING-5216 : changing the voting algorithm to use correct sorting by votingId not viewId, plus making the whole algorithm more straight forward and robust

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1711265 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5216 : changing the voting algorithm to use correct sorting by votingId not...
Stefan Egli [Thu, 29 Oct 2015 14:11:59 +0000 (14:11 +0000)] 
SLING-5216 : changing the voting algorithm to use correct sorting by votingId not viewId, plus making the whole algorithm more straight forward and robust

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1711262 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5195 : test setup adjustments due to change in HeartbeatHandler
Stefan Egli [Thu, 29 Oct 2015 14:09:09 +0000 (14:09 +0000)] 
SLING-5195 : test setup adjustments due to change in HeartbeatHandler

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1711259 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5195 : HeartbeatHandler now has a dedicated separately scheduled Runnable that...
Stefan Egli [Thu, 29 Oct 2015 14:06:19 +0000 (14:06 +0000)] 
SLING-5195 : HeartbeatHandler now has a dedicated separately scheduled Runnable that periodically checksForTopologyChanges - to avoid possibility of being blocked by long-during session-saves. Additionally, it checks if its own heartbeat is older than a heartbeat timeout - in which case it treats itself as TOPOLOGY_CHANGING.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1711257 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5195 related : avoid duplicate, shadowing fields
Stefan Egli [Thu, 29 Oct 2015 13:55:55 +0000 (13:55 +0000)] 
SLING-5195 related : avoid duplicate, shadowing fields

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1711255 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5215 : fixed getTopology to return the correct, previous oldView when the view...
Stefan Egli [Thu, 29 Oct 2015 12:49:03 +0000 (12:49 +0000)] 
SLING-5215 : fixed getTopology to return the correct, previous oldView when the view is undefined, ie not current. This is achieved by making sure DiscoveryServiceImpl sets the oldView whenever the view changes

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1711240 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5214: include millis in testing log formats
Stefan Egli [Thu, 29 Oct 2015 12:34:37 +0000 (12:34 +0000)] 
SLING-5214: include millis in testing log formats

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1711236 13f79535-47bb-0310-9956-ffa450edef68

3 years agoupdate discovery dependencies to next snapshot versions until release versions availa...
Stefan Seifert [Mon, 26 Oct 2015 22:05:15 +0000 (22:05 +0000)] 
update discovery dependencies to next snapshot versions until release versions available in maven central

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1710708 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-4617 : in case of a local heartbeat timing out before even having a chance...
Stefan Egli [Mon, 26 Oct 2015 14:51:09 +0000 (14:51 +0000)] 
SLING-4617 : in case of a local heartbeat timing out before even having a chance to be included in the view that the local instance generates - that vote is now not created an instead a warning is issued

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1710610 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5094 : removed unnecessary reference to IdMapService - which doesn't work on...
Stefan Egli [Mon, 26 Oct 2015 14:07:24 +0000 (14:07 +0000)] 
SLING-5094 : removed unnecessary reference to IdMapService - which doesn't work on non-oak repositories anyway

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1710603 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5196 : using maven-bundle-plugin 2.5.3 to remain backwards-compatibility
Stefan Egli [Mon, 26 Oct 2015 14:05:46 +0000 (14:05 +0000)] 
SLING-5196 : using maven-bundle-plugin 2.5.3 to remain backwards-compatibility

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1710601 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5195 related : renamed confusingly named handlePotentialTopologyChange into...
Stefan Egli [Mon, 26 Oct 2015 12:53:06 +0000 (12:53 +0000)] 
SLING-5195 related : renamed confusingly named handlePotentialTopologyChange into checkForTopologyChange

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1710589 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5191 / SLING-4603 : rename ConsistencyService to ClusterSyncService - plus...
Stefan Egli [Fri, 23 Oct 2015 11:50:05 +0000 (11:50 +0000)] 
SLING-5191 / SLING-4603 : rename ConsistencyService to ClusterSyncService - plus making timeout/interval values for the same configurable in discovery.oak

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1710183 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5188 - Some WebConsole plugins are placed in the 'main' category
Robert Munteanu [Thu, 22 Oct 2015 13:53:49 +0000 (13:53 +0000)] 
SLING-5188 - Some WebConsole plugins are placed in the 'main' category

Added missing felix.webconsole.category property.

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1710018 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5094 / SLING-4603 related : cancel ongoing sync explicitly in order to avoid...
Stefan Egli [Wed, 21 Oct 2015 15:37:35 +0000 (15:37 +0000)] 
SLING-5094 / SLING-4603 related : cancel ongoing sync explicitly in order to avoid dangerous CHANGED event when changes happen during sync

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1709866 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5173 : rename commons impl packages to base as they are meant for reuse by...
Stefan Egli [Wed, 21 Oct 2015 08:29:08 +0000 (08:29 +0000)] 
SLING-5173 : rename commons impl packages to base as they are meant for reuse by discovery.impl and discovery.oak - plus avoid using abstract component class with scr annotations - use abstract getters instead - plus some more fine-tuning of log messages - plus make discovery.impl's Config also implement DiscoveryLiteConfig - plus properly handle binds happening before activate in DiscoveryServiceImpl

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1709751 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSLING-5173 : fixed getSocketConnectionTimeout to a more proper getSocketConnectTimeout
asf-sync-process [Tue, 20 Oct 2015 14:44:27 +0000 (14:44 +0000)] 
SLING-5173 : fixed getSocketConnectionTimeout to a more proper getSocketConnectTimeout

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1709617 13f79535-47bb-0310-9956-ffa450edef68