[
https://issues.apache.org/jira/browse/IGNITE-16117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17465812#comment-17465812
]
Pavel Tupitsyn commented on IGNITE-16117:
-----------------------------------------
Merged to main: ca29c426e742c221c7eb961b2520d26d3a33ef43
> Thin 3.0: Convert async exceptions in sync APIs
> -----------------------------------------------
>
> Key: IGNITE-16117
> URL: https://issues.apache.org/jira/browse/IGNITE-16117
> Project: Ignite
> Issue Type: Improvement
> Components: thin client
> Affects Versions: 3.0.0-alpha3
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Priority: Major
> Labels: ignite-3
> Fix For: 3.0.0-alpha4
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Currently, synchronous APIs delegate to async variants like this:
> {code:java}
> public Collection<R> deleteAllExact(@NotNull Collection<R> recs) {
> return deleteAllExactAsync(recs).join();
> }
> {code}
> However, *join()* throws *CompletionException* so users have to unwrap the
> actual exception manually.
> Implement exception unwrapping in all synchronous client APIs. See how
> server-side APIs deal with this in *AbstractTableView#sync*.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)