[ 
https://issues.apache.org/jira/browse/IGNITE-14553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17340653#comment-17340653
 ] 

Aleksey Plekhanov commented on IGNITE-14553:
--------------------------------------------

[~korlov] in this case, concurrently updated entries will be lost:
{code:java}
public void testMissedEntries() throws Exception {
    IgniteCache<Integer, Integer> cache = client.getOrCreateCache(new 
CacheConfiguration<Integer, Integer>("cache")
        .setQueryEntities(F.asList(new QueryEntity(Integer.class, 
Integer.class).setTableName("t")))
    );

    for (int i = 0; i < 10_000; i++)
        cache.put(i, i);

    AtomicBoolean stop = new AtomicBoolean();

    GridTestUtils.runAsync(() -> {
        while (!stop.get())
            cache.put(ThreadLocalRandom.current().nextInt(10_000), 0);
    });

    assertEquals(10_000, sql("SELECT t._key FROM \"cache\".t").size());

    stop.set(true);
}
{code}

> Calcite engine. Duplicated result on insert
> -------------------------------------------
>
>                 Key: IGNITE-14553
>                 URL: https://issues.apache.org/jira/browse/IGNITE-14553
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>            Reporter: Konstantin Orlov
>            Assignee: Konstantin Orlov
>            Priority: Blocker
>
> Please see the test 
> {{modules/calcite/src/test/sql/types/string/test_scan_big_varchar.test_ignore}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to