Skip to content

Commit e408967

Browse files
committed
IGNITE-28123 Used sneakyThrows.
1 parent a7e4de0 commit e408967

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

modules/client-handler/src/main/java/org/apache/ignite/client/handler/ClientPrimaryReplicaTracker.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import static java.util.concurrent.CompletableFuture.completedFuture;
2121
import static org.apache.ignite.client.handler.requests.table.ClientTableCommon.tableIdNotFoundException;
2222
import static org.apache.ignite.internal.event.EventListener.fromConsumer;
23+
import static org.apache.ignite.internal.util.ExceptionUtils.sneakyThrow;
2324
import static org.apache.ignite.internal.util.IgniteUtils.inBusyLock;
2425
import static org.apache.ignite.internal.util.IgniteUtils.inBusyLockSafe;
2526

@@ -197,9 +198,7 @@ private CompletableFuture<PrimaryReplicasResult> primaryReplicasAsyncInternal(in
197198
throw new CompletionException(cause);
198199
}
199200

200-
throw err instanceof CompletionException
201-
? (CompletionException) err
202-
: new CompletionException(err);
201+
throw sneakyThrow(err);
203202
}
204203

205204
PrimaryReplicasResult res = primaryReplicasNoWait(tableId, maxStartTime0, timestamp, true);

0 commit comments

Comments
 (0)