[jira] [Commented] (SOLR-6462) forward updates asynchronously to peer clusters/leaders

2014-10-13 Thread Renaud Delbru (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14169296#comment-14169296
 ] 

Renaud Delbru commented on SOLR-6462:
-

I have started to implement the CDCR request handler that will handle CDCR 
life-cycle actions and forward updates to the peer clusters.
While trying to implement the synchronisation of the life-cycle status amongst 
all the nodes of a cluster by using zookeeper, I have encountered a limitation 
of the SolrZkClient. The SolrZkClient provides methods such as getData or 
exists. The problem is that the client automatically wraps the provided watcher 
with a new watcher (see 
[here|https://github.com/apache/lucene-solr/blob/6ead83a6fafbdd6c444e2a837b09eccf34a255ef/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java#L255])
 which breaks the guarantee that a watch object, or function/context pair, 
will only be triggered once for a given notification. This creates undesirable 
effects when we are registering the same watch is the Watcher callback method.

I have created the issue SOLR-6621 to notify about the problem.

 forward updates asynchronously to peer clusters/leaders
 ---

 Key: SOLR-6462
 URL: https://issues.apache.org/jira/browse/SOLR-6462
 Project: Solr
  Issue Type: Sub-task
Reporter: Yonik Seeley

 http://heliosearch.org/solr-cross-data-center-replication/#UpdateFlow
 - An update will be received by the shard leader and versioned
 - Update will be sent from the leader to it’s replicas
 - Concurrently, update will be sent (synchronously or asynchronously) to the 
 shard leader in other clusters
 - Shard leader in the other cluster will receive already versioned update 
 (and not re-version it), and forward the update to it’s replicas



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-6462) forward updates asynchronously to peer clusters/leaders

2014-09-01 Thread Yonik Seeley (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-6462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14117535#comment-14117535
 ] 

Yonik Seeley commented on SOLR-6462:


Although we eventually want synchronous operation (on a per-update basis), 
let's start with async.
The code on the receiving side (the peer leader) should be pretty simple... I 
think almost all the necessary code should already be in there since it's the 
same type of operation needed during shard splitting (a leader accepting 
already versioned updates).

 forward updates asynchronously to peer clusters/leaders
 ---

 Key: SOLR-6462
 URL: https://issues.apache.org/jira/browse/SOLR-6462
 Project: Solr
  Issue Type: Sub-task
Reporter: Yonik Seeley

 http://heliosearch.org/solr-cross-data-center-replication/#UpdateFlow
 - An update will be received by the shard leader and versioned
 - Update will be sent from the leader to it’s replicas
 - Concurrently, update will be sent (synchronously or asynchronously) to the 
 shard leader in other clusters
 - Shard leader in the other cluster will receive already versioned update 
 (and not re-version it), and forward the update to it’s replicas



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

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org