You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (Commented JIRA)" <ji...@apache.org> on 2011/10/28 18:21:32 UTC

[jira] [Commented] (SOLR-2204) Cross-version replication broken by new javabin format

    [ https://issues.apache.org/jira/browse/SOLR-2204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13138492#comment-13138492 ] 

Jan Høydahl commented on SOLR-2204:
-----------------------------------

I now have a customer facing this very problem, but in another context than replication.

The case is that they use Escenic ECM system (http://en.wikipedia.org/wiki/Escenic) which is Java based and from version 5 they also have their own built-in Solr search, on version 1.4.

The online newspaper publications run in the same JVM and then there is a clash between SolrJ versions needed for the built-in editorial search and the enduser-facing search. Thus it would be ideal if we could do a drop-in upgrade to solrj3.x without breaking the internal search of Escenic (which also uses JavaBin of course).

I'll consider committing this, but first it needs some more work I guess.

a) Would there be a more robust way of detecting version mismatch than parsing text from the exception? Perhaps a new Solr specific exception with a version variable?
b) HTTP request param "version" is currently 2.2, even for Solr3.4. The patch changes this to 3.4. Should not the version instead be bumped to 2.3, or should we let it follow solr versions (which is less confusing in many cases..)?
c) How would the new SolrJ version handle talking to 1.4 server? Is there a way to force a new SolrJ to start talking v1 instead of fallback?
                
> Cross-version replication broken by new javabin format
> ------------------------------------------------------
>
>                 Key: SOLR-2204
>                 URL: https://issues.apache.org/jira/browse/SOLR-2204
>             Project: Solr
>          Issue Type: Bug
>          Components: replication (java)
>    Affects Versions: 3.1
>         Environment: Linux idxst0-a 2.6.18-194.3.1.el5.centos.plusxen #1 SMP Wed May 19 09:59:34 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
>            Reporter: Shawn Heisey
>             Fix For: 3.5, 4.0
>
>         Attachments: SOLR-2204.patch, SOLR-2204.patch
>
>
> Slave server is branch_3x, revision 1027974.  Master server is 1.4.1.  Replication fails because of the new javabin format.
> SEVERE: Master at: http://HOST:8983/solr/live/replication is not available. Index fetch failed. Exception: Invalid version or the data in not in 'javabin' format
> Switching Solr's internally generated requests to XML, or adding support for both javabin versions would get rid of this problem.  I do not know how to do either of these things.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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