From 2a9388912bc7e73381eb8b4d39fe03462abc7cb9 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Mon, 28 Mar 2016 13:34:18 -0400 Subject: [PATCH] Add clarifying comment on disrupted in-flight ops --- .../replication/TransportReplicationAction.java | 11 ----------- .../discovery/DiscoveryWithServiceDisruptionsIT.java | 8 ++------ 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java b/core/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java index 3bb98f82b4c..1fdd35edccf 100644 --- a/core/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java +++ b/core/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java @@ -818,17 +818,6 @@ public abstract class TransportReplicationAction TransportReplicationAction.assertAllShardReferencesAreCleaned()); -//// assertBusy(() -> super.beforeIndexDeletion()); -// } catch (Exception e) { -// throw new AssertionError(e); -// } + // this is because the disruption schemes swallow requests by design + // as such, these operations will never be marked as finished } private List startCluster(int numberOfNodes) throws ExecutionException, InterruptedException {