Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-10991

JDBC thin: STREAMING mode fails on streamer reopen on not ordered mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6
    • 2.8
    • jdbc, sql
    • None

    Description

      Please see attached test. Repeatedly overwriting same cache entries over and over in streaming mode with ALLOW_OVERWRITE ON will cause either:

      java.sql.BatchUpdateException: Failed to INSERT some keys because they are already in cache [keys=[2054...]
      	at org.apache.ignite.internal.jdbc.thin.JdbcThinConnection$StreamState.readResponses(JdbcThinConnection.java:1052)
      	... 1 more
      

      or

      WARNING: Exception during batch send on streamed connection close
      java.sql.BatchUpdateException: class org.apache.ignite.IgniteCheckedException: Data streamer has been closed.
      	at org.apache.ignite.internal.jdbc.thin.JdbcThinConnection$StreamState.readResponses(JdbcThinConnection.java:1016)
      	at java.lang.Thread.run(Thread.java:748)
      

      Expecter behavior - no failures, all records overwritten.

      Attachments

        Activity

          People

            tledkov-gridgain Taras Ledkov
            ilyak Ilya Kasnacheev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m