You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Egli (JIRA)" <ji...@apache.org> on 2015/11/05 15:31:27 UTC

[jira] [Resolved] (SLING-5058) introduce viewCnt to ./establishedView to be able to detect missing changes

     [ https://issues.apache.org/jira/browse/SLING-5058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Egli resolved SLING-5058.
--------------------------------
    Resolution: Won't Fix

Won't implement this - instead SLING-5258 was implemented for discovery.impl 1.2.2 that achieves the same (that you don't miss any changing establishedView, even if it keeps having the same instances) using the votingId (which always changes on each voting/establishedView) as the localClusterSyncTokenId - that in turn, thanks to SLING-5256, then results in the ViewStateManager treating the views as different and you'll get your TOPOLOGY_CHANGED event there..

> introduce viewCnt to ./establishedView to be able to detect missing changes
> ---------------------------------------------------------------------------
>
>                 Key: SLING-5058
>                 URL: https://issues.apache.org/jira/browse/SLING-5058
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: Discovery Impl 1.1.6
>            Reporter: Stefan Egli
>            Assignee: Stefan Egli
>            Priority: Minor
>             Fix For: Discovery Impl 1.2.2
>
>
> With SLING-5030 when an instance detects that it is ISOLATED_FROM_TOPOLOGY it will resets its {{leaderElectionId}} to ensure that it is not becoming leader again. This works fine when the instance actually detects that it is isolated. If the timing however is such that it does not detect the isolation (eg when the isolation is for a very short time only), then it would not be able to reset the {{leaderElectionId}}, thus it might become leader again - which means that we have an unnecessary leader switch.
> This could be improved by introducing a {{viewCnt}} on the {{./establishedView}} - and an instance could detect a gap in the viewCnt and *then* reset the {{leaderElectionId}}.
> Putting this out-of-scope for discovery.impl 1.1.8 though



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)