Skip to content

Commit

Permalink
Addressing code review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
  • Loading branch information
reta committed Jun 21, 2022
1 parent cf1816d commit e558cea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public void onResponse(SearchResponse response) {
public void onFailure(Exception e) {
if (fail.compareAndExchange(true, false)) {
try {
throw new NullPointerException("Simulated exception");
throw new RuntimeException("Simulated exception");
} finally {
executor.submit(() -> latch.countDown());
}
Expand Down Expand Up @@ -451,7 +451,7 @@ public void testOnShardSuccessPhaseDoneFailure() throws InterruptedException {
@Override
public void onResponse(SearchResponse response) {
if (fail.compareAndExchange(true, false)) {
throw new NullPointerException("Simulated exception");
throw new RuntimeException("Simulated exception");
}
}

Expand Down

0 comments on commit e558cea

Please sign in to comment.