on dynamic index creation when indexing, we might raise failure on routing (for example), but then not notify the listener

This commit is contained in:
kimchy 2011-06-12 23:22:12 +03:00
parent b35dfd3aa7
commit 00e010a52a
1 changed files with 5 additions and 1 deletions

View File

@ -107,7 +107,11 @@ public class TransportIndexAction extends TransportShardReplicationOperationActi
@Override public void onFailure(Throwable e) {
if (ExceptionsHelper.unwrapCause(e) instanceof IndexAlreadyExistsException) {
// we have the index, do it
try {
innerExecute(request, listener);
} catch (Exception e1) {
listener.onFailure(e1);
}
} else {
listener.onFailure(e);
}