You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (Jira)" <ji...@apache.org> on 2021/12/14 10:37:00 UTC
[jira] [Created] (IGNITE-16117) Thin 3.0: Convert async exceptions in sync APIs
Pavel Tupitsyn created IGNITE-16117:
---------------------------------------
Summary: 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
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)