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/11/10 01:44:04 UTC
[lucene-solr] branch reference_impl_dev updated: @1128 doRecovery
logic here as well.
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 35db12b @1128 doRecovery logic here as well.
35db12b is described below
commit 35db12b047f00fd7d3a5c17353a178e6b1e62479
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Mon Nov 9 19:30:19 2020 -0600
@1128 doRecovery logic here as well.
---
.../src/java/org/apache/solr/handler/admin/CoreAdminOperation.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminOperation.java b/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminOperation.java
index e3a2e18..a1c1fdc 100644
--- a/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminOperation.java
+++ b/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminOperation.java
@@ -170,10 +170,7 @@ enum CoreAdminOperation implements CoreAdminOp {
try (SolrCore core = it.handler.coreContainer.getCore(cname)) {
if (core != null) {
- // This can take a while
- ParWork.getRootSharedExecutor().submit(() -> {
- core.getUpdateHandler().getSolrCoreState().doRecovery(it.handler.coreContainer, core.getCoreDescriptor());
- });
+ core.getUpdateHandler().getSolrCoreState().doRecovery(it.handler.coreContainer, core.getCoreDescriptor());
} else {
throw new SolrException(ErrorCode.BAD_REQUEST, "Unable to locate core " + cname);
}