See
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/1130/changes>
Changes:
[stefanegli] 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
[stefanegli] SLING-5264 follow-up : adding more logging to
analyzeVotings/promote and AbstractDiscoveryServiceTest to track down still
existing issue
[stefanegli] 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
[stefanegli] SLING-5244 : added a retry-loop upon getting a test-related
exception
[stefanegli] 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
------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Sling Resource-Based Discovery Service 1.2.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
org.apache.sling.discovery.impl ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @
org.apache.sling.discovery.impl ---
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run
(set-bundle-required-execution-environment) @ org.apache.sling.discovery.impl
---
[INFO] Executing tasks
main:
[INFO] Executed tasks
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @
org.apache.sling.discovery.impl ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
org.apache.sling.discovery.impl ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run (check-memory-task) @
org.apache.sling.discovery.impl ---
[INFO] Executing tasks
main:
[echo] **************** WARNING (SLING-443/SLING-1782)
******************************
[echo] On most platforms, you'll get OutOfMemoryErrors when building
unless you set
[echo] on 32bit platforms: MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=256M", see
SLING-443
[echo] on 64bit platforms: MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M", see
SLING-1782
[echo]
******************************************************************************
[INFO] Executed tasks
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @
org.apache.sling.discovery.impl ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 14 source files to
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/ws/target/classes>
[INFO]
[INFO] --- maven-scr-plugin:1.21.0:scr (generate-scr-scrdescriptor) @
org.apache.sling.discovery.impl ---
[INFO] Generating 1 MetaType Descriptors in
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/ws/target/classes/OSGI-INF/metatype/org.apache.sling.discovery.impl.Config.xml>
[INFO] Writing 1 Service Component Descriptors to
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/ws/target/classes/OSGI-INF/org.apache.sling.discovery.impl.DiscoveryServiceImpl.xml>
[INFO] Writing 1 Service Component Descriptors to
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/ws/target/classes/OSGI-INF/org.apache.sling.discovery.impl.Config.xml>
[INFO] Writing 1 Service Component Descriptors to
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/ws/target/classes/OSGI-INF/org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler.xml>
[INFO] Writing 1 Service Component Descriptors to
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/ws/target/classes/OSGI-INF/org.apache.sling.discovery.impl.cluster.ClusterViewServiceImpl.xml>
[INFO] Writing 1 Service Component Descriptors to
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/ws/target/classes/OSGI-INF/org.apache.sling.discovery.impl.cluster.voting.VotingHandler.xml>
[INFO] Writing 1 Service Component Descriptors to
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/ws/target/classes/OSGI-INF/org.apache.sling.discovery.impl.TopologyWebConsolePlugin.xml>
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @
org.apache.sling.discovery.impl ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @
org.apache.sling.discovery.impl ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/ws/target/test-classes>
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/ws/src/test/java/org/apache/sling/discovery/impl/DiscoveryServiceImplTest.java>:[72,41]
cannot find symbol
symbol: method getViewStateManager()
location: variable discoveryService of type
org.apache.sling.discovery.impl.DiscoveryServiceImpl
[ERROR]
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/ws/src/test/java/org/apache/sling/discovery/impl/DiscoveryServiceImplTest.java>:[84,41]
cannot find symbol
symbol: method getViewStateManager()
location: variable discoveryService of type
org.apache.sling.discovery.impl.DiscoveryServiceImpl
[ERROR]
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/ws/src/test/java/org/apache/sling/discovery/impl/DiscoveryServiceImplTest.java>:[95,41]
cannot find symbol
symbol: method getViewStateManager()
location: variable discoveryService of type
org.apache.sling.discovery.impl.DiscoveryServiceImpl
[ERROR]
<https://analysis.apache.org/jenkins/job/sling/org.apache.sling$org.apache.sling.discovery.impl/ws/src/test/java/org/apache/sling/discovery/impl/DiscoveryServiceImplTest.java>:[114,41]
cannot find symbol
symbol: method getViewStateManager()
location: variable discoveryService of type
org.apache.sling.discovery.impl.DiscoveryServiceImpl
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[JENKINS] Archiving disabled