[ 
https://issues.apache.org/jira/browse/SOLR-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man updated SOLR-3746:
---------------------------

    Attachment: SOLR-3746.patch

patch updating the VersionInfo class to throw an exception if the version field 
doesn't exist, and a test proving that this now causes SolrCore to fail to 
initialize if updateLog is configured but there is no version field.

(This also fixes some places in SolrCore where helpful error messages from 
plugin initialization were being hidden by getting wrapped in 
InvocationTargetException)
                
> updateLog should fail to init if there is no _version_ field in schema.xml
> --------------------------------------------------------------------------
>
>                 Key: SOLR-3746
>                 URL: https://issues.apache.org/jira/browse/SOLR-3746
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Hoss Man
>            Assignee: Hoss Man
>            Priority: Critical
>             Fix For: 4.0
>
>         Attachments: SOLR-3746.patch
>
>
> Per irc conversation with yonik, it's not clear if updateLog works correctly 
> in all situations if there is no {{\_version\_}} field in the schema...
> * it's certainly not tested
> * SOLR-3432 makes it clear there are at least some problematic sitautions
> For these reasons, updateLog initialization should fail fast with a clear 
> error if there is no {{\_version\_}} field in the schema.
> (we can always relax this restriction later if people write the code/tests 
> for it)

--
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to