ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Kuznetsov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-7575) Concurrent updates of common keys cause silent wrong update count (intermittent issue)
Date Tue, 30 Jan 2018 19:51:00 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-7575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pavel Kuznetsov updated IGNITE-7575:
------------------------------------
    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}}



  was:
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. 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}}




> Concurrent updates of common keys cause silent wrong update count (intermittent issue)
> --------------------------------------------------------------------------------------
>
>                 Key: IGNITE-7575
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7575
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>            Reporter: Pavel Kuznetsov
>            Assignee: Alexander Paschenko
>            Priority: Major
>         Attachments: UpdateTestDrive.java
>
>
> 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}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message