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:34:29 UTC

svn commit: r1673364 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/PluginBag.java

Author: noble
Date: Tue Apr 14 05:34:29 2015
New Revision: 1673364

URL: http://svn.apache.org/r1673364
Log:
Do not throw cached Exception, create new

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/PluginBag.java

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/PluginBag.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/PluginBag.java?rev=1673364&r1=1673363&r2=1673364&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/PluginBag.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/PluginBag.java Tue Apr 14 05:34:29 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);