[ https://issues.apache.org/jira/browse/IGNITE-9947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16659021#comment-16659021 ]
Pavel Kuznetsov commented on IGNITE-9947: ----------------------------------------- pasting here code of the test {noformat} /** * Check if we turned on streaming before {@link PreparedStatement#executeBatch()} call we get all results uploaded. * * @throws SQLException on error. */ public void testStreamingOnInMiddleOfBatch() throws SQLException { fail("https://issues.apache.org/jira/browse/IGNITE-9947"); fillParamsWithPerson(pstmt, 1); try (Statement statement = conn.createStatement()) { statement.executeUpdate("SET STREAMING ON"); } fillParamsWithPerson(pstmt, 2); pstmt.addBatch(); pstmt.executeBatch(); try (Statement statement = conn.createStatement()) { statement.executeUpdate("SET STREAMING OFF"); } assertEquals("Uploaded rows count is not correct.", 2L, personsCount()); } {noformat} > JDBC thin: Batch update is not performed if streaming state changed before > executeBatch() > ----------------------------------------------------------------------------------------- > > Key: IGNITE-9947 > URL: https://issues.apache.org/jira/browse/IGNITE-9947 > Project: Ignite > Issue Type: Bug > Components: sql > Affects Versions: 2.6 > Reporter: Pavel Kuznetsov > Priority: Major > > Thin driver is affected. > How to reproduce: > 0) Create table > 1) Create PreparedStatement "INSERT INTO TAB VALUES (?, ?)" > 2) Set statement's args and call .addBatch() > 3) Turn on streaming > 4) call .executeBatch() > 5) Turn off streaming to flush streamer. > After that table should contain batched data, but it doesn't -- This message was sent by Atlassian JIRA (v7.6.3#76005)