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

Vyacheslav Daradur commented on IGNITE-4211:
--------------------------------------------

[~avinogradov]

1) Added.

2) I have got the exception in test when I call IgniteCache#containKey or 
IgniteCache#get methods with @Cacheble+sync=true 
{code:title=Error example}
java.lang.AssertionError
        at 
org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheEntry.onMarkedObsolete(GridDhtCacheEntry.java:127)
{code}
{code:title=Source code (error point)}  
@Override public void onMarkedObsolete() {
    assert !Thread.holdsLock(this);
{code}
                
{code:title=Used code example}
synchronized (Thread.currentThread()) { // has no effect on the error
        Object val = cache.get(key);

    if (val != null)
        return (T)fromStoreValue(val);
                
        // invoke with EntryProcessor 
...
{code}

3) I introduced the new method which does the same.
{code:title=Introduced method}
@Nullable private static Object fromStoreValue(@NotNull Object val) {
    return NULL.equals(val) ? null : val;
}
{code}

[ci.tests|http://ci.ignite.apache.org/viewLog.html?buildId=506660] look good.
Please, review it again. Thanks.

> Update Spring dependency to latest stable version
> -------------------------------------------------
>
>                 Key: IGNITE-4211
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4211
>             Project: Ignite
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 1.7
>            Reporter: Sergey Kozlov
>            Assignee: Vyacheslav Daradur
>             Fix For: 2.0
>
>
> It seems the Spring dependency looks outdated for now. Apache Ignite still 
> uses 4.1.0 released two years ago. Could we to update to latest stable 
> version (4.3.4 at the moment)?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to