Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema.xml not compatible with Solr 5.2.1 #2524

Closed
fabiankirstein opened this issue Jul 7, 2015 · 10 comments
Closed

Schema.xml not compatible with Solr 5.2.1 #2524

fabiankirstein opened this issue Jul 7, 2015 · 10 comments
Assignees

Comments

@fabiankirstein
Copy link
Contributor

I set up CKAN 2.3 with Solr 5.2.1. Everything works fine and new datasets are indexed. But when you restart Solr then the core seems to be corrupted and is not loading with this error [1]. It cannot be recovered. It's very likely to be a bug in Solr, or the CKAN Schema is in a way not compatible with this Solr Version.

[1]

java.lang.NullPointerException
    at org.apache.lucene.util.NumericUtils.prefixCodedToLong(NumericUtils.java:226)
    at org.apache.lucene.util.NumericUtils.getMaxLong(NumericUtils.java:582)
    at org.apache.solr.update.VersionInfo.getMaxVersionFromIndex(VersionInfo.java:234)
    at org.apache.solr.update.UpdateLog.seedBucketsWithHighestVersion(UpdateLog.java:1580)
    at org.apache.solr.update.UpdateLog.seedBucketsWithHighestVersion(UpdateLog.java:1610)
    at org.apache.solr.core.SolrCore.seedVersionBuckets(SolrCore.java:861)
    at org.apache.solr.core.SolrCore.<init>(SolrCore.java:843)
    at org.apache.solr.core.SolrCore.<init>(SolrCore.java:658)
    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:637)
    at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:381)
    at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:375)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$1.run(ExecutorUtil.java:148)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
@joetsoi joetsoi self-assigned this Jul 7, 2015
@mordae
Copy link
Contributor

mordae commented Jul 22, 2015

Confirming.

@wardi
Copy link
Contributor

wardi commented Jul 22, 2015

We had to make this change to our solr config (not schema.xml) open-data/ckanext-stcndm@0b1f4b423 does that help?

@marinajungblut
Copy link

Same problem here.

@mordae
Copy link
Contributor

mordae commented Jul 22, 2015

Weird. Changing type of the _version_ field to long apparently fixed the issue for us.

@marinajungblut
Copy link

Ran a quick test and seeemed to work. Thank you, @mordae.

@mordae
Copy link
Contributor

mordae commented Jul 27, 2015

Now let's hope @joetsoi confirms and fixes this for real. There may be a reason for the string type of the field and I would prefer not to run an "accidentally working" CKAN in production.

@maxious
Copy link
Member

maxious commented Aug 19, 2015

I think there's an assumption in Solr/Lucene that version is a long for which a min/max can be calculated https://issues.apache.org/jira/browse/SOLR-7866 https://issues.apache.org/jira/browse/LUCENE-6719

@TkTech
Copy link
Member

TkTech commented Sep 8, 2015

Confirming that the change to _version_ from string to long followed by purging the index and rebuilding resolved this issue for solr 5.2.1.

@jgrocha
Copy link

jgrocha commented Dec 2, 2015

To use Solr 5.2.1, I removed every occurrence of enablePositionIncrements="true"from schema.xml and it worked.

@amercader
Copy link
Member

Closing as it is an issue with a specific version of Solr, and workarounds have been provided in case people is stuck with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants