From 1b6f1d504454eb14c64b49c0f15889dfa2a72b71 Mon Sep 17 00:00:00 2001 From: kkewwei Date: Thu, 29 Feb 2024 17:15:51 +0800 Subject: [PATCH] rename variable names Signed-off-by: kkewwei --- .../action/search/AbstractSearchAsyncActionTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/test/java/org/opensearch/action/search/AbstractSearchAsyncActionTests.java b/server/src/test/java/org/opensearch/action/search/AbstractSearchAsyncActionTests.java index 7ef2921eb226c..9402788d95677 100644 --- a/server/src/test/java/org/opensearch/action/search/AbstractSearchAsyncActionTests.java +++ b/server/src/test/java/org/opensearch/action/search/AbstractSearchAsyncActionTests.java @@ -139,7 +139,7 @@ private AbstractSearchAsyncAction createAction( ActionListener listener, final boolean controlled, final boolean failExecutePhaseOnShard, - final boolean catchExceptionInExecutePhaseOnShard, + final boolean catchExceptionWhenExecutePhaseOnShard, final AtomicLong expected, final SearchShardIterator... shards ) { @@ -196,7 +196,7 @@ protected void executePhaseOnShard( if (failExecutePhaseOnShard) { listener.onFailure(new ShardNotFoundException(shardIt.shardId())); } else { - if (catchExceptionInExecutePhaseOnShard) { + if (catchExceptionWhenExecutePhaseOnShard) { try { listener.onResponse(new QuerySearchResult()); } catch (Exception e) { @@ -586,7 +586,7 @@ public void onFailure(Exception e) { assertThat(searchResponse.getSuccessfulShards(), equalTo(shards.length)); } - private void innerTestExecutePhaseOnShardFailure(boolean catchExceptionInExecutePhaseOnShard) throws InterruptedException { + private void innerTestExecutePhaseOnShardFailure(boolean catchExceptionWhenExecutePhaseOnShard) throws InterruptedException { final Index index = new Index("test", UUID.randomUUID().toString()); final SearchShardIterator[] shards = IntStream.range(0, 2 + randomInt(3)) @@ -622,7 +622,7 @@ public void onFailure(Exception e) { }, false, false, - catchExceptionInExecutePhaseOnShard, + catchExceptionWhenExecutePhaseOnShard, new AtomicLong(), shards );