Alexander Lapin created IGNITE-10340: ----------------------------------------
Summary: JDBC thin: in some cases it's not possible to convert IllegalStateException to SQLException with appropriate message. Key: IGNITE-10340 URL: https://issues.apache.org/jira/browse/IGNITE-10340 Project: Ignite Issue Type: Bug Components: jdbc Affects Versions: 2.6 Reporter: Alexander Lapin In case of using already closed JdbcBulkLoadProcessor following exception might be thrown: {code} [12:04:15] (err) Error processing file batchjava.lang.IllegalStateException: Data streamer has been closed. at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.closedException(DataStreamerImpl.java:1081) at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.lock(DataStreamerImpl.java:443) ... {code} However, cause cancellationReason is null it's not possible to detect whether query was cancelled or not: {code:title=DataStreamerImpl.java|borderStyle=solid} private void closedException() { throw new IllegalStateException("Data streamer has been closed.", cancellationReason); } {code} Reproducer: {code} org.apache.ignite.jdbc.thin.JdbcThinStatementCancelSelfTest #testExpectSQLExceptionAndAFAPControlRetrievalAfterCancelingLongRunningFileUpload {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)