mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 22:36:20 +00:00
acquireSearcher should fail with state failure when not set/closed
also fixes #4232
This commit is contained in:
parent
9648a53fd5
commit
2ba7c1d4a1
@ -690,7 +690,7 @@ public class RobinEngine extends AbstractIndexShardComponent implements Engine {
|
||||
try {
|
||||
IndexSearcher searcher = manager.acquire();
|
||||
return newSearcher(source, searcher, manager);
|
||||
} catch (IOException ex) {
|
||||
} catch (Throwable ex) {
|
||||
logger.error("failed to acquire searcher, source {}", ex, source);
|
||||
throw new EngineException(shardId, ex.getMessage());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user