Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev

[jira] [Updated] (SOLR-3746) updateLog should fail to init if there is no _version_ field in schema.xml

 

 

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded


jira at apache

Aug 20, 2012, 10:12 PM

Post #1 of 2 (123 views)
Permalink
[jira] [Updated] (SOLR-3746) updateLog should fail to init if there is no _version_ field in schema.xml

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

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

Description:
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)

was:
Per irc conversation with yonik, it's not clear if updateLog works correctly in all situations if there is no {{_versio_}} 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)


fix formatting of description

> 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
>
>
> 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: dev-unsubscribe [at] lucene
For additional commands, e-mail: dev-help [at] lucene


jira at apache

Aug 20, 2012, 10:16 PM

Post #2 of 2 (110 views)
Permalink
[jira] [Updated] (SOLR-3746) updateLog should fail to init if there is no _version_ field in schema.xml [In reply to]

[ 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: dev-unsubscribe [at] lucene
For additional commands, e-mail: dev-help [at] lucene

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.