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);
}
}
Aggregations