mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 22:45:04 +00:00
not only noclass, throwable will do well here....
This commit is contained in:
parent
cc65d39f06
commit
783649adc7
@ -312,6 +312,8 @@ public class InternalIndexService extends AbstractIndexComponent implements Inde
|
||||
shardInjector = modules.createChildInjector(injector);
|
||||
} catch (CreationException e) {
|
||||
throw new IndexShardCreationException(shardId, Injectors.getFirstErrorFailure(e));
|
||||
} catch (Throwable e) {
|
||||
throw new IndexShardCreationException(shardId, e);
|
||||
}
|
||||
|
||||
shardsInjectors = newMapBuilder(shardsInjectors).put(shardId.id(), shardInjector).immutableMap();
|
||||
|
@ -284,10 +284,10 @@ public class InternalIndicesService extends AbstractLifecycleComponent<IndicesSe
|
||||
Injector indexInjector;
|
||||
try {
|
||||
indexInjector = modules.createChildInjector(injector);
|
||||
} catch (NoClassDefFoundError e) {
|
||||
throw new IndexCreationException(index, e);
|
||||
} catch (CreationException e) {
|
||||
throw new IndexCreationException(index, Injectors.getFirstErrorFailure(e));
|
||||
} catch (Throwable e) {
|
||||
throw new IndexCreationException(index, e);
|
||||
}
|
||||
|
||||
indicesInjectors.put(index.name(), indexInjector);
|
||||
|
Loading…
x
Reference in New Issue
Block a user