Search in sources :

Example 1 with RemoteException

use of org.apache.ignite.internal.sql.engine.metadata.RemoteException in project ignite-3 by apache.

the class ExecutionServiceImpl method onMessage.

private void onMessage(String nodeId, ErrorMessage msg) {
    assert nodeId != null && msg != null;
    RunningQuery qry = queryRegistry.query(msg.queryId());
    if (qry != null && qry.state() != QueryState.CLOSED) {
        assert qry instanceof RootQuery : "Unexpected query object: " + qry;
        Exception e = new RemoteException(nodeId, msg.queryId(), msg.fragmentId(), msg.error());
        ((RootQuery<?>) qry).onError(e);
    }
}
Also used : RunningQuery(org.apache.ignite.internal.sql.engine.RunningQuery) RootQuery(org.apache.ignite.internal.sql.engine.RootQuery) RemoteException(org.apache.ignite.internal.sql.engine.metadata.RemoteException) IgniteInternalCheckedException(org.apache.ignite.lang.IgniteInternalCheckedException) IgniteInternalException(org.apache.ignite.lang.IgniteInternalException) RemoteException(org.apache.ignite.internal.sql.engine.metadata.RemoteException)

Aggregations

RootQuery (org.apache.ignite.internal.sql.engine.RootQuery)1 RunningQuery (org.apache.ignite.internal.sql.engine.RunningQuery)1 RemoteException (org.apache.ignite.internal.sql.engine.metadata.RemoteException)1 IgniteInternalCheckedException (org.apache.ignite.lang.IgniteInternalCheckedException)1 IgniteInternalException (org.apache.ignite.lang.IgniteInternalException)1