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:
parent
b35dfd3aa7
commit
00e010a52a
|
@ -107,7 +107,11 @@ public class TransportIndexAction extends TransportShardReplicationOperationActi
|
||||||
@Override public void onFailure(Throwable e) {
|
@Override public void onFailure(Throwable e) {
|
||||||
if (ExceptionsHelper.unwrapCause(e) instanceof IndexAlreadyExistsException) {
|
if (ExceptionsHelper.unwrapCause(e) instanceof IndexAlreadyExistsException) {
|
||||||
// we have the index, do it
|
// we have the index, do it
|
||||||
|
try {
|
||||||
innerExecute(request, listener);
|
innerExecute(request, listener);
|
||||||
|
} catch (Exception e1) {
|
||||||
|
listener.onFailure(e1);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
listener.onFailure(e);
|
listener.onFailure(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue