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

Nikita Amelchev updated IGNITE-23211:
-------------------------------------
    Release Note: Fixed an assertion error on IgniteCache#get

> get operation fails in optimistic transaction
> ---------------------------------------------
>
>                 Key: IGNITE-23211
>                 URL: https://issues.apache.org/jira/browse/IGNITE-23211
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Nikolay Izhikov
>            Assignee: Nikolay Izhikov
>            Priority: Blocker
>              Labels: ise
>             Fix For: 2.17
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> {code:java}
> /** */
> public class TransactionTest extends GridCommonAbstractTest {
>     /** */
>     @Test
>     public void testDelete() throws Exception {
>         IgniteCache<Object, Object> c = startGrid(0).createCache(new 
> CacheConfiguration<>()
>             .setName(DEFAULT_CACHE_NAME)
>             .setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL)
>         );
>         c.put(1, 1);
>         try (Transaction tx = grid(0).transactions().txStart(OPTIMISTIC, 
> READ_COMMITTED)) {
>             c.invoke(1, new EntryProcessor<>() {
>                 @Override public Object process(MutableEntry<Object, Object> 
> entry, Object... arguments) throws EntryProcessorException {
>                     entry.remove();
>                     return null;
>                 }
>             });
>             assertNull(c.get(1));
>         }
>     }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to