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:46:54 UTC
[lucene-solr] branch reference_impl_dev updated: @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_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/reference_impl_dev by this push:
new b209d75 @499 Fail on inform error.
b209d75 is described below
commit b209d75a1dc3099ba12a1e5144fa98e6cbb850f6
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");
}
}
}