diff --git a/src/main/java/org/elasticsearch/action/admin/indices/delete/TransportDeleteIndexAction.java b/src/main/java/org/elasticsearch/action/admin/indices/delete/TransportDeleteIndexAction.java index 6037a084d0d..4a248d9d352 100644 --- a/src/main/java/org/elasticsearch/action/admin/indices/delete/TransportDeleteIndexAction.java +++ b/src/main/java/org/elasticsearch/action/admin/indices/delete/TransportDeleteIndexAction.java @@ -124,6 +124,7 @@ public class TransportDeleteIndexAction extends TransportMasterNodeOperationActi @Override public void onFailure(Throwable t) { logger.debug("[{}] failed to delete index", t, index); + lastFailure = t; if (count.decrementAndGet() == 0) { listener.onFailure(t); }