[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-22 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16588535#comment-16588535 ] Stefan Egli commented on SLING-7830: thx a lot for the review! > Defined leader switch >

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-22 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16588508#comment-16588508 ] Carsten Ziegeler commented on SLING-7830: - PR looks good to me > Defined leader switch >

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16586118#comment-16586118 ] Stefan Egli commented on SLING-7830: bq. With the above discussed implementation, the deployer of the

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16586073#comment-16586073 ] Stefan Egli commented on SLING-7830: Not all jobs do get assigned to the leader though, there are

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16586011#comment-16586011 ] Carsten Ziegeler commented on SLING-7830: - With the above discussed implementation, the deployer

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Dirk Rudolph (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16586006#comment-16586006 ] Dirk Rudolph commented on SLING-7830: - The reason we had to report that was custom implementations of

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16585998#comment-16585998 ] Stefan Egli commented on SLING-7830: Had an offline discussion with [~mreutegg] about bq. With a new

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16585948#comment-16585948 ] Stefan Egli commented on SLING-7830: Created a PR with a suggested implementation

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16585845#comment-16585845 ] Stefan Egli commented on SLING-7830: Ok, I'll have a look at this and come up with a patch > Defined

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16585833#comment-16585833 ] Carsten Ziegeler commented on SLING-7830: - Right, my initial idea was that the prefix is the

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16585828#comment-16585828 ] Stefan Egli commented on SLING-7830: Maybe the only remaining question is then: how does the

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16585826#comment-16585826 ] Stefan Egli commented on SLING-7830: We could make the prefix configurable, and that would then be

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16585823#comment-16585823 ] Stefan Egli commented on SLING-7830: How would you set the leaderElectionId of an instance that has

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16585813#comment-16585813 ] Carsten Ziegeler commented on SLING-7830: - [~egli] Ok, thanks now I understand better where you

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16585747#comment-16585747 ] Stefan Egli commented on SLING-7830: (btw: with 'duplicates' I was referring to a temporary situation

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16585728#comment-16585728 ] Carsten Ziegeler commented on SLING-7830: - Got it, right - let's forget about the details how the

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16585719#comment-16585719 ] Stefan Egli commented on SLING-7830: If that happens simultaneously while the instances actually join

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16585650#comment-16585650 ] Carsten Ziegeler commented on SLING-7830: - But if we change the leader to a new instance, than

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-20 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16585632#comment-16585632 ] Stefan Egli commented on SLING-7830: bq. Are those changes to the leaderElectionIds in the repository

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-17 Thread Carsten Ziegeler (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16583848#comment-16583848 ] Carsten Ziegeler commented on SLING-7830: - Are those changes to the leaderElectionIds in the

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-16 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16582255#comment-16582255 ] Stefan Egli commented on SLING-7830: The leader election is based on the leaderElectionId stored in

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-16 Thread Stefan Egli (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16582187#comment-16582187 ] Stefan Egli commented on SLING-7830: Assuming we're talking about discover.oak here? Re scenario 1:

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-15 Thread Dirk Rudolph (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16580992#comment-16580992 ] Dirk Rudolph commented on SLING-7830: - I agree on option 2 being more complex but for me this would

[jira] [Commented] (SLING-7830) Defined leader switch

2018-08-15 Thread Alexander Saar (JIRA)
[ https://issues.apache.org/jira/browse/SLING-7830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16580985#comment-16580985 ] Alexander Saar commented on SLING-7830: --- I see 2 scenarios: * control the leader in same topology: