You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/06/23 09:58:00 UTC

[jira] [Commented] (IGNITE-5528) IS_EVICT_DISABLED flag is not cleared when cache store throws an exception

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

ASF GitHub Bot commented on IGNITE-5528:
----------------------------------------

GitHub user AMashenkov opened a pull request:

    https://github.com/apache/ignite/pull/2183

    IGNITE-5528 - IS_EVICT_DISABLED flag is not cleared on cache store exception

    Fixed.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gridgain/apache-ignite ignite-5528

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ignite/pull/2183.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2183
    
----
commit 29e2499100b4f559eb3ee7e877d099f6983cbd74
Author: Alexey Goncharuk <al...@gmail.com>
Date:   2017-06-20T04:59:09Z

    IGNITE-5528 - IS_EVICT_DISABLED flag is not cleared on cache store exception.

----


> IS_EVICT_DISABLED flag is not cleared when cache store throws an exception
> --------------------------------------------------------------------------
>
>                 Key: IGNITE-5528
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5528
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 1.7
>            Reporter: Alexey Goncharuk
>            Assignee: Andrew Mashenkov
>             Fix For: 2.2
>
>         Attachments: GridCachePartitionEvictionDuringReadThroughSelfTest.java
>
>
> Below is an observation from a live system:
> On a large cluster with occasional topology changes, there is a sporadic hang which manifests itself with "Failed to evict partition message" for one of the caches with enabled cache store. I managed to take a heap dump and found out that on the hanging node there was a single entry with IS_EVICT_DISABLED flag set and no other threads were doing store load operation. Earlier in the logs I saw that the cache store threw a CacheLoaderException due to interrupted connection with a database.
> Currently, the flag is set before the cache store load and it is cleared after the load.
> Looks like if the store throws an exception, this leads to the leaked flag set and the entry cannot be cleared from the partition. As a result, on the next topology change partition exchange will be freezed with "Failed to wait for partition eviction" error message.
> Attached is the test reproducing this issue (note that the message appears after one minute)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)