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
This commit is contained in:
Chris M. Hostetter 2012-08-21 19:19:21 +00:00
parent 41c067bc18
commit 0183711e22
2 changed files with 8 additions and 3 deletions

View File

@ -211,8 +211,13 @@ public class UpdateLog implements PluginInfoInitialized {
newestLogsOnStartup.addFirst(ll); newestLogsOnStartup.addFirst(ll);
if (newestLogsOnStartup.size() >= 2) break; 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. // TODO: these startingVersions assume that we successfully recover from all non-complete tlogs.
UpdateLog.RecentUpdates startingUpdates = getRecentUpdates(); UpdateLog.RecentUpdates startingUpdates = getRecentUpdates();

View File

@ -148,7 +148,7 @@
<field name="payloads" type="payloads" indexed="true" stored="true"/> <field name="payloads" type="payloads" indexed="true" stored="true"/>
<field name="_version_" type="long" indexed="true" stored="true"/> <!-- field name="_version_" type="long" indexed="true" stored="true"/ -->
<!-- Uncommenting the following will create a "timestamp" field using <!-- Uncommenting the following will create a "timestamp" field using
a default value of "NOW" to indicate when each document was indexed. a default value of "NOW" to indicate when each document was indexed.