ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ignite TC Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-5227) StackOverflowError in GridCacheMapEntry#checkOwnerChanged()
Date Thu, 01 Aug 2019 07:52:00 GMT

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

Ignite TC Bot commented on IGNITE-5227:
---------------------------------------

{panel:title=Branch: [pull/6736/head] Base: [master] : Possible Blockers (1)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}
{color:#d04437}PDS (Indexing){color} [[tests 0 Exit Code |https://ci.ignite.apache.org/viewLog.html?buildId=4438275]]

{panel}
[TeamCity *--&gt; Run :: All* Results|https://ci.ignite.apache.org/viewLog.html?buildId=4438310&amp;buildTypeId=IgniteTests24Java8_RunAll]

> StackOverflowError in GridCacheMapEntry#checkOwnerChanged()
> -----------------------------------------------------------
>
>                 Key: IGNITE-5227
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5227
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 1.6
>            Reporter: Alexey Goncharuk
>            Assignee: Stepachev Maksim
>            Priority: Critical
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> A simple test reproducing this error:
> {code}
>     /**
>      * @throws Exception if failed.
>      */
>     public void testBatchUnlock() throws Exception {
>        startGrid(0);
>        grid(0).createCache(new CacheConfiguration<Integer, Integer>(DEFAULT_CACHE_NAME)
>             .setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL));
>         try {
>             final CountDownLatch releaseLatch = new CountDownLatch(1);
>             IgniteInternalFuture<Object> fut = GridTestUtils.runAsync(new Callable<Object>()
{
>                 @Override public Object call() throws Exception {
>                     IgniteCache<Object, Object> cache = grid(0).cache(null);
>                     Lock lock = cache.lock("key");
>                     try {
>                         lock.lock();
>                         releaseLatch.await();
>                     }
>                     finally {
>                         lock.unlock();
>                     }
>                     return null;
>                 }
>             });
>             Map<String, String> putMap = new LinkedHashMap<>();
>             putMap.put("key", "trigger");
>             for (int i = 0; i < 10_000; i++)
>                 putMap.put("key-" + i, "value");
>             IgniteCache<Object, Object> asyncCache = grid(0).cache(null).withAsync();
>             asyncCache.putAll(putMap);
>             IgniteFuture<Object> resFut = asyncCache.future();
>             Thread.sleep(1000);
>             releaseLatch.countDown();
>             fut.get();
>             resFut.get();
>         }
>         finally {
>             stopAllGrids();
>         }
> {code}
> We should replace a recursive call with a simple iteration over the linked list.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message