You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Igor Sapego (Jira)" <ji...@apache.org> on 2021/12/27 15:45:00 UTC

[jira] [Commented] (IGNITE-16117) Thin 3.0: Convert async exceptions in sync APIs

    [ https://issues.apache.org/jira/browse/IGNITE-16117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17465794#comment-17465794 ] 

Igor Sapego commented on IGNITE-16117:
--------------------------------------

[~ptupitsyn] looks good to me.

> 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
>
>
> 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)