You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vyacheslav Koptilin (Jira)" <ji...@apache.org> on 2023/05/22 14:40:00 UTC

[jira] [Created] (IGNITE-19536) Introduce a "recoverable" flag to differentiate recoverable and non-recoverable exceptions

Vyacheslav Koptilin created IGNITE-19536:
--------------------------------------------

             Summary: Introduce a "recoverable" flag to differentiate recoverable and non-recoverable exceptions
                 Key: IGNITE-19536
                 URL: https://issues.apache.org/jira/browse/IGNITE-19536
             Project: Ignite
          Issue Type: Improvement
            Reporter: Vyacheslav Koptilin
            Assignee: Vyacheslav Koptilin
             Fix For: 3.0.0-beta2


It seems useful to introduce a marker/flag in order to differentiate recoverable and non-recoverable errors. This approach should simplify exception handling on the client side.
Something as follows:

{code:java}
        try {
            igniteCompute.execute();
        }
        catch (IgniteComputeException error) {
            if (error is recoverable) {
                // Put retry logic here.
            }
        }
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)