You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Anton Kurbanov (Jira)" <ji...@apache.org> on 2021/11/23 13:25:00 UTC

[jira] [Created] (IGNITE-15977) H2 internally wraps OOM in SQLException

Anton Kurbanov created IGNITE-15977:
---------------------------------------

             Summary: H2 internally wraps OOM in SQLException
                 Key: IGNITE-15977
                 URL: https://issues.apache.org/jira/browse/IGNITE-15977
             Project: Ignite
          Issue Type: New Feature
         Environment: 


            Reporter: Anton Kurbanov


org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing#executeSqlQuery should handle the OOME that is wrapped here:

https://github.com/h2database/h2database/blob/master/h2/src/main/org/h2/command/Command.java#L174

{code:java}
catch (OutOfMemoryError e) {
                        callStop = false;
                        // there is a serious problem:
                        // the transaction may be applied partially
                        // in this case we need to panic:
                        // close the database
                        database.shutdownImmediately();
                        throw DbException.convert(e);
 }
{code}

It seems that the exception should be correctly processed here and failure handler must be called: https://github.com/apache/ignite/blob/master/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java#L852




--
This message was sent by Atlassian Jira
(v8.20.1#820001)