mirror of https://github.com/apache/lucene.git
SOLR-13950: Fix getLeaderRetry swallowing interrupt in ZkStateReader (#1023)
Let InterruptedException bubble up
This commit is contained in:
parent
c51006c3c4
commit
4910c0f558
|
@ -183,6 +183,8 @@ Bug Fixes
|
|||
|
||||
* SOLR-13941: Tests configure Jetty differently than when running via start.jar (janhoy, Uwe Schindler)
|
||||
|
||||
* SOLR-13950: Fix InterruptedException being swallowed in ZkStateReader’s getLeaderRetry method
|
||||
|
||||
Other Changes
|
||||
---------------------
|
||||
|
||||
|
|
|
@ -968,7 +968,7 @@ public class ZkStateReader implements SolrCloseable {
|
|||
}
|
||||
return false;
|
||||
});
|
||||
} catch (TimeoutException | InterruptedException e) {
|
||||
} catch (TimeoutException e) {
|
||||
throw new SolrException(ErrorCode.SERVICE_UNAVAILABLE, "No registered leader was found after waiting for "
|
||||
+ timeout + "ms " + ", collection: " + collection + " slice: " + shard + " saw state=" + clusterState.getCollectionOrNull(collection)
|
||||
+ " with live_nodes=" + clusterState.getLiveNodes());
|
||||
|
|
Loading…
Reference in New Issue