postCreateUnderLock try catch listeners

This commit is contained in:
Ivannikov Kirill 2015-09-02 18:21:17 +05:00
parent 39fad8c374
commit cddf198c83
1 changed files with 5 additions and 1 deletions

View File

@ -96,7 +96,11 @@ public class ShardIndexingService extends AbstractIndexShardComponent {
public void postCreateUnderLock(Engine.Create create) {
for (IndexingOperationListener listener : listeners) {
listener.postCreateUnderLock(create);
try {
listener.postCreateUnderLock(create);
} catch (Exception e) {
logger.warn("postCreateUnderLock listener [{}] failed", e, listener);
}
}
}