lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varun Thacker (JIRA)" <>
Subject [jira] [Commented] (SOLR-11003) Enabling bi-directional CDCR active-active clusters
Date Sat, 08 Jul 2017 00:21:01 GMT


Varun Thacker commented on SOLR-11003:

Hi Amrit,

Patch is looking good!

Let's add some code comments in CDCRTransactionLog and CDCRReplicator.

For example, this change in CDCRTransactionLog is confusing till you look at CDCRReplicator#isTargetCluster

        if (cmd.getReq().getParamString().contains(CdcrUpdateProcessor.CDCR_UPDATE)) {
          codec.writeTag(JavaBinCodec.ARR, 6);
        } else {
          codec.writeTag(JavaBinCodec.ARR, 5);

The test has adds, deleteByid and deleteByQuery.  Can we also test for in place updates (
I didn't see a anything triggering that code path ) 
Also it wouldn't hurt to add atomic updates to the test.

> Enabling bi-directional CDCR active-active clusters
> ---------------------------------------------------
>                 Key: SOLR-11003
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: CDCR
>            Reporter: Amrit Sarkar
>            Assignee: Varun Thacker
>         Attachments:, SOLR-11003.patch
> The latest version of Solr CDCR across collections / clusters is in active-passive format,
where we can index into source collection and the updates gets forwarded to the passive one
and vice-versa is not supported.
> We are try to get a  design ready to index in both collections and the updates gets reflected
across the collections in real-time. ClusterACollectionA => ClusterBCollectionB | ClusterBCollectionB
=> ClusterACollectionA.
> The best use-case would be to we keep indexing in ClusterACollectionA which forwards
the updates to ClusterBCollectionB. If ClusterACollectionA gets down, we point the indexer
and searcher application to ClusterBCollectionB. Once ClusterACollectionA is up, depending
on updates count, they will be bootstrapped or forwarded to ClusterACollectionA from ClusterBCollectionB
and keep indexing on the ClusterBCollectionB.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message