[
https://issues.apache.org/jira/browse/SLING-5313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Egli updated SLING-5313:
-------------------------------
Attachment: ClusterTest.testAdditionalInstance
Also attaching the full [^ClusterTest.testAdditionalInstance] that contains the
entire log of this test run. It shows that after the 'fault new voting' is
created,
instance {{c85f7fdc}} is periodically voting (whenever it receives a change
event) - but for some reason that is a) not persisted as it has to vote again
and only votes if it didn't yet and b) the other session also doesn't see the
vote, thus the vote never concludes.
{code}
18.11.2015 17:34:05.731 *INFO * [VotingEventListener-secondInstance]
VotingView: vote: slingId=c85f7fdc-ef90-47d6-94f9-cb18d6089b19 is voting
vote=true on MockedResource, type=nt:unstructured,
path=/var/discovery/impl/ongoingVotings/1215ae50-375e-49c2-8f8e-a64800ec8978
18.11.2015 17:34:05.756 *INFO * [VotingEventListener-secondInstance]
VotingView: vote: slingId=c85f7fdc-ef90-47d6-94f9-cb18d6089b19 is voting
vote=true on MockedResource, type=nt:unstructured,
path=/var/discovery/impl/ongoingVotings/1215ae50-375e-49c2-8f8e-a64800ec8978
18.11.2015 17:34:05.771 *INFO * [VotingEventListener-secondInstance]
VotingView: vote: slingId=c85f7fdc-ef90-47d6-94f9-cb18d6089b19 is voting
vote=true on MockedResource, type=nt:unstructured,
path=/var/discovery/impl/ongoingVotings/1215ae50-375e-49c2-8f8e-a64800ec8978
18.11.2015 17:34:05.781 *INFO * [VotingEventListener-secondInstance]
VotingView: vote: slingId=c85f7fdc-ef90-47d6-94f9-cb18d6089b19 is voting
vote=true on MockedResource, type=nt:unstructured,
path=/var/discovery/impl/ongoingVotings/1215ae50-375e-49c2-8f8e-a64800ec8978
18.11.2015 17:34:05.797 *INFO * [VotingEventListener-secondInstance]
VotingView: vote: slingId=c85f7fdc-ef90-47d6-94f9-cb18d6089b19 is voting
vote=true on MockedResource, type=nt:unstructured,
path=/var/discovery/impl/ongoingVotings/1215ae50-375e-49c2-8f8e-a64800ec8978
18.11.2015 17:34:05.807 *INFO * [main] VotingView: vote:
slingId=c85f7fdc-ef90-47d6-94f9-cb18d6089b19 is voting vote=true on
MockedResource, type=nt:unstructured,
path=/var/discovery/impl/ongoingVotings/1215ae50-375e-49c2-8f8e-a64800ec8978
18.11.2015 17:34:05.818 *INFO * [VotingEventListener-secondInstance]
VotingView: vote: slingId=c85f7fdc-ef90-47d6-94f9-cb18d6089b19 is voting
vote=true on MockedResource, type=nt:unstructured,
path=/var/discovery/impl/ongoingVotings/1215ae50-375e-49c2-8f8e-a64800ec8978
18.11.2015 17:34:05.837 *INFO * [VotingEventListener-secondInstance]
VotingView: vote: slingId=c85f7fdc-ef90-47d6-94f9-cb18d6089b19 is voting
vote=true on MockedResource, type=nt:unstructured,
path=/var/discovery/impl/ongoingVotings/1215ae50-375e-49c2-8f8e-a64800ec8978
18.11.2015 17:34:05.859 *INFO * [VotingEventListener-secondInstance]
VotingView: vote: slingId=c85f7fdc-ef90-47d6-94f9-cb18d6089b19 is voting
vote=true on MockedResource, type=nt:unstructured,
path=/var/discovery/impl/ongoingVotings/1215ae50-375e-49c2-8f8e-a64800ec8978
18.11.2015 17:34:05.872 *INFO * [VotingEventListener-secondInstance]
VotingView: vote: slingId=c85f7fdc-ef90-47d6-94f9-cb18d6089b19 is voting
vote=true on MockedResource, type=nt:unstructured,
path=/var/discovery/impl/ongoingVotings/1215ae50-375e-49c2-8f8e-a64800ec8978
18.11.2015 17:34:05.885 *INFO * [VotingEventListener-secondInstance]
VotingView: vote: slingId=c85f7fdc-ef90-47d6-94f9-cb18d6089b19 is voting
vote=true on MockedResource, type=nt:unstructured,
path=/var/discovery/impl/ongoingVotings/1215ae50-375e-49c2-8f8e-a64800ec8978
{code}
> ClusterTest.testAdditionalInstance failure due to using old jackrabbit version
> ------------------------------------------------------------------------------
>
> Key: SLING-5313
> URL: https://issues.apache.org/jira/browse/SLING-5313
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Affects Versions: Discovery Impl 1.2.2, Discovery Base 1.1.0
> Reporter: Stefan Egli
> Assignee: Stefan Egli
> Priority: Minor
> Fix For: Discovery Base 1.1.2, Discovery Impl 1.2.4
>
> Attachments: ClusterTest.testAdditionalInstance, faultyNewVote
>
>
> failed on jenkins:
> https://builds.apache.org/job/sling-trunk-1.8/org.apache.sling$org.apache.sling.discovery.impl/2040/testReport/org.apache.sling.discovery.impl.cluster/ClusterTest/testAdditionalInstance/
> {code}
> java.lang.AssertionError: expected:<1> but was:<0>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:743)
> at org.junit.Assert.assertEquals(Assert.java:118)
> at org.junit.Assert.assertEquals(Assert.java:555)
> at org.junit.Assert.assertEquals(Assert.java:542)
> at
> org.apache.sling.discovery.base.its.AbstractClusterTest.testAdditionalInstance(AbstractClusterTest.java:1317)
> {code}
> while the problem as it turns out was, that one instance votes around the
> same time the new voting is committed - then the following warnings show up:
> {code}
> 18.11.2015 17:34:05.734 *WARN * [main] ItemStateReferenceCache: overwriting
> cached entry 1a023c37-3d63-4a15-a875-2a321b975e73
> 18.11.2015 17:34:05.734 *WARN * [main] ItemStateReferenceCache: overwriting
> cached entry 555a8ba4-cd36-4eed-b1b4-b350a2abdf2c
> 18.11.2015 17:34:05.734 *WARN * [main] ItemStateReferenceCache: overwriting
> cached entry 3b86f1ef-daa1-4cce-a4b5-5d76e212719e
> 18.11.2015 17:34:05.734 *WARN * [main] ItemStateReferenceCache: overwriting
> cached entry 83196e26-f741-445e-b111-2880a8cd9bbf
> {code}
> and that instance's yes vote is never seen by the other instance (session in
> the same vm). Ie although this is happening all in the same VM, one session's
> changes do not propagate to the other session. This seems to be due/related
> to the above warn.
> Looking at the used jackrabbit version it turns out sling.commons.testing
> still uses jcr-commons 2.2.9 - while we should probably use something much
> newer like 2.10
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)