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

Concurrent updates of common keys cause silent wrong update count (intermittent issue)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • sql

    Description

      In case of concurrent updates that affects some common keys we get silent wrong update count

      There's single table with two columns: key and val.
      I'm performing the same query that updates the same 1000 rows using 4 threads. Query doesn't update keys, it only increments val.
      In some cases I get expected exception "Failed to update some keys because they had been modified concurrently" or have 1000 updated rows

      In the other case, API tells me that more than 1000 rows updated. Expected result are exception or successfull update of 1000 rows

      see reproducer attached. It should be run against ignite/examples/src/main/java/org/apache/ignite/examples/ExampleNodeStartup.java

      Attachments

        1. UpdateTestDrive.java
          4 kB
          Pavel Kuznetsov

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pkouznet Pavel Kuznetsov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: