You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2017/12/29 03:49:10 UTC
[3/5] lucene-solr:jira/solr-11702: SOLR-11702: CreateCollectionCmd
should handle InterruptedException properly
SOLR-11702: CreateCollectionCmd should handle InterruptedException properly
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/d8ab1d65
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/d8ab1d65
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/d8ab1d65
Branch: refs/heads/jira/solr-11702
Commit: d8ab1d65a57be0c827152d3c244bbb46d4849200
Parents: 7291501
Author: Cao Manh Dat <da...@apache.org>
Authored: Fri Dec 29 10:20:28 2017 +0700
Committer: Cao Manh Dat <da...@apache.org>
Committed: Fri Dec 29 10:20:28 2017 +0700
----------------------------------------------------------------------
.../src/java/org/apache/solr/cloud/CreateCollectionCmd.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/d8ab1d65/solr/core/src/java/org/apache/solr/cloud/CreateCollectionCmd.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/cloud/CreateCollectionCmd.java b/solr/core/src/java/org/apache/solr/cloud/CreateCollectionCmd.java
index b63e91d..63b1b5a 100644
--- a/solr/core/src/java/org/apache/solr/cloud/CreateCollectionCmd.java
+++ b/solr/core/src/java/org/apache/solr/cloud/CreateCollectionCmd.java
@@ -407,7 +407,10 @@ public class CreateCollectionCmd implements Cmd {
}
stateManager.removeData(termsPath, -1);
}
- } catch (KeeperException | InterruptedException | IOException | BadVersionException e) {
+ } catch (InterruptedException e) {
+ Thread.interrupted();
+ throw new SolrException(ErrorCode.SERVER_ERROR, "Error deleting old term nodes for collection from Zookeeper", e);
+ } catch (KeeperException | IOException | BadVersionException e) {
throw new SolrException(ErrorCode.SERVER_ERROR, "Error deleting old term nodes for collection from Zookeeper", e);
}
try {