[
https://issues.apache.org/jira/browse/SOLR-6266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14173588#comment-14173588
]
Kwan-I Lee commented on SOLR-6266:
----------------------------------
Karol, Andrzej,
I'm interested in how this plugin handles different replication failure
scenarios. Here is one of my tests:
1. Add some documents in Couchbase.
2. Activate this plugin, creating remote cluster and replication in Couchbase.
- Data successfully pushed to Solr through XDCR. The Couchbase documents are
now visible in Solr.
3. Stop Solr instance. Add a document, doc1, in Couchbase.
4. Restart Solr instance and activate plugin.
With Elasticsearch-Couchbase plugin, doc1 will be pushed to Elasticsearch node
once the machine is back. However with this plugin, the replication of doc1
will fail and never go to Solr instance.
I spent some time debugging and tracing both Elasticsearch and Solr plugin
code. For Elasticsearch one, couchbase.capi.servlet.ClusterMapServlet.doGet()
will eventually get correct pool from req.getPathInfo(). However for Solr one,
req.getPathInfo() keeps getting null value for pool no matter how many times
Couchbase sends doc1 update request to Solr plugin.
I'm testing it on Mac, so not sure if it happens in other systems.
> Couchbase plug-in for Solr
> --------------------------
>
> Key: SOLR-6266
> URL: https://issues.apache.org/jira/browse/SOLR-6266
> Project: Solr
> Issue Type: New Feature
> Reporter: Varun
> Assignee: Joel Bernstein
> Attachments: solr-couchbase-plugin-0.0.3-SNAPSHOT.tar.gz,
> solr-couchbase-plugin-0.0.5-SNAPSHOT.tar.gz, solr-couchbase-plugin.tar.gz,
> solr-couchbase-plugin.tar.gz
>
>
> It would be great if users could connect Couchbase and Solr so that updates
> to Couchbase can automatically flow to Solr. Couchbase provides some very
> nice API's which allow applications to mimic the behavior of a Couchbase
> server so that it can receive updates via Couchbase's normal cross data
> center replication (XDCR).
> One possible design for this is to create a CouchbaseLoader that extends
> ContentStreamLoader. This new loader would embed the couchbase api's that
> listen for incoming updates from couchbase, then marshal the couchbase
> updates into the normal Solr update process.
> Instead of marshaling couchbase updates into the normal Solr update process,
> we could also embed a SolrJ client to relay the request through the http
> interfaces. This may be necessary if we have to handle mapping couchbase
> "buckets" to Solr collections on the Solr side.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]