You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/08/11 06:49:21 UTC
[lucene-solr] 03/03: @499 Fail on inform error.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
commit 97abf51c18070951ec4c7984e2103d5870eb52b1
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Tue Aug 11 01:46:37 2020 -0500
@499 Fail on inform error.
---
.../core/src/java/org/apache/solr/core/SolrResourceLoader.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java b/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java
index 4cb5d84..2bdb3b1 100644
--- a/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java
+++ b/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java
@@ -786,8 +786,8 @@ public class SolrResourceLoader implements ResourceLoader, Closeable {
try {
aware.inform(core);
} catch (Exception e) {
- ParWork.propegateInterrupt(e);
- log.error("Exception informing SolrCore", e);
+ ParWork.propegateInterrupt("Exception informing for SolrCore", e);
+ throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Exception informing for SolrCore", e);
}
waitingForCore.remove(aware);
});
@@ -812,8 +812,8 @@ public class SolrResourceLoader implements ResourceLoader, Closeable {
try {
r.inform(loader);
} catch (Exception e) {
- ParWork.propegateInterrupt(e);
- log.error("Exception informing ResourceLoader", e);
+ ParWork.propegateInterrupt("Exception informing for ResourceLoader", e);
+ throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Exception informing for ResourceLoader", e);
}
waitingForResources.remove(r);
});
@@ -848,7 +848,7 @@ public class SolrResourceLoader implements ResourceLoader, Closeable {
});
});
- worker.addCollect("informResourceLoader");
+ worker.addCollect("informInfoRegistry");
}
}
}