From 0183711e22e3bd61f164c00b3a8ce8b175de4322 Mon Sep 17 00:00:00 2001 From: "Chris M. Hostetter" Date: Tue, 21 Aug 2012 19:19:21 +0000 Subject: [PATCH] SOLR-3746: more context to error message git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1375723 13f79535-47bb-0310-9956-ffa450edef68 --- solr/core/src/java/org/apache/solr/update/UpdateLog.java | 9 +++++++-- solr/example/solr/collection1/conf/schema.xml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/update/UpdateLog.java b/solr/core/src/java/org/apache/solr/update/UpdateLog.java index 490c371eda6..f6d5226a79e 100644 --- a/solr/core/src/java/org/apache/solr/update/UpdateLog.java +++ b/solr/core/src/java/org/apache/solr/update/UpdateLog.java @@ -211,8 +211,13 @@ public class UpdateLog implements PluginInfoInitialized { newestLogsOnStartup.addFirst(ll); if (newestLogsOnStartup.size() >= 2) break; } - - versionInfo = new VersionInfo(this, 256); + + try { + versionInfo = new VersionInfo(this, 256); + } catch (SolrException e) { + throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, + "Unable to use updateLog: " + e.getMessage(), e); + } // TODO: these startingVersions assume that we successfully recover from all non-complete tlogs. UpdateLog.RecentUpdates startingUpdates = getRecentUpdates(); diff --git a/solr/example/solr/collection1/conf/schema.xml b/solr/example/solr/collection1/conf/schema.xml index af2006a0778..b62e691c1d0 100755 --- a/solr/example/solr/collection1/conf/schema.xml +++ b/solr/example/solr/collection1/conf/schema.xml @@ -148,7 +148,7 @@ - +