[
https://issues.apache.org/jira/browse/SLING-2885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Egli resolved SLING-2885.
--------------------------------
Resolution: Fixed
fixed. synchronizing VotingHandler.analyzeVotings as it can be called
concurrencly
> Race condition in VotingHandler.promote()
> -----------------------------------------
>
> Key: SLING-2885
> URL: https://issues.apache.org/jira/browse/SLING-2885
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Affects Versions: Discovery Impl 1.0.0
> Environment: Discovery Impl version: 0.1.0.R1484784
> Reporter: Marcel Reutegger
> Assignee: Stefan Egli
> Priority: Minor
> Attachments: error.log
>
>
> Sometimes on initial startup of Sling Discovery it happens that two threads
> try to promote the same winning vote at the same time. This leads to a failed
> commit in the repository. The system seems to be OK after the exception.
> There is an established view and the (single) cluster node is the leader.
> Please note, this is running on Jackrabbit Oak, but might also happen on
> Jackrabbit 2.x because the basic issue is two sessions trying to add the same
> child node.
> See attached log excerpt for more details.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira