You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2015/04/14 07:39:03 UTC
svn commit: r1673366 - in /lucene/dev/branches/branch_5x: ./ solr/
solr/core/ solr/core/src/java/org/apache/solr/core/PluginBag.java
Author: noble
Date: Tue Apr 14 05:39:03 2015
New Revision: 1673366
URL: http://svn.apache.org/r1673366
Log:
Do not throw cached Exception, create new
Modified:
lucene/dev/branches/branch_5x/ (props changed)
lucene/dev/branches/branch_5x/solr/ (props changed)
lucene/dev/branches/branch_5x/solr/core/ (props changed)
lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/core/PluginBag.java
Modified: lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/core/PluginBag.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/core/PluginBag.java?rev=1673366&r1=1673365&r2=1673366&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/core/PluginBag.java (original)
+++ lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/core/PluginBag.java Tue Apr 14 05:39:03 2015
@@ -338,7 +338,9 @@ public class PluginBag<T> implements Aut
@Override
public T get() {
if (lazyInst != null) return lazyInst;
- if (solrException != null) throw solrException;
+ if (solrException != null) {
+ throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,"Unrecoverable error", solrException);
+ }
if (createInst()) {
// check if we created the instance to avoid registering it again
registerMBean(lazyInst, core, pluginInfo.name);