You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maksim Timonin (Jira)" <ji...@apache.org> on 2023/02/15 11:41:00 UTC

[jira] [Created] (IGNITE-18811) Review snapshot exceptions handling for catching Exception instead of Throwable

Maksim Timonin created IGNITE-18811:
---------------------------------------

             Summary: Review snapshot exceptions handling for catching Exception instead of Throwable
                 Key: IGNITE-18811
                 URL: https://issues.apache.org/jira/browse/IGNITE-18811
             Project: Ignite
          Issue Type: Bug
            Reporter: Maksim Timonin


Ignite heavily uses asserts, that might produce AssertionError at runtime.

But IgniteSnapshotManager in some places catches Exception, and there is a failover logic in the catch block. Such places should be reviewed, covered with tests and/or fixed.

Also ClusterSnapshotFuture accepts Exception as param instead  of Throwable. It might lead to ClassCastException.

Wrong exception handling might lead to resources leaks, snapshot  process hanging, etc.



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