[jira] [Created] (IGNITE-7076) NPE while stopping with GridDhtLockFuture

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-7076) NPE while stopping with GridDhtLockFuture

Anton Vinogradov (Jira)
Alexander Belyak created IGNITE-7076:
----------------------------------------

             Summary: NPE while stopping with GridDhtLockFuture
                 Key: IGNITE-7076
                 URL: https://issues.apache.org/jira/browse/IGNITE-7076
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 2.1
            Reporter: Alexander Belyak
            Priority: Minor


Get NPE after "Stopped cache" msg
{noformat}
2017-11-29 08:18:20.994 [ERROR][grid-timeout-worker-#119%DPL_GRID%DplGridNodeName%][o.a.i.i.p.t.GridTimeoutProcessor] Error when executing timeout callback: LockTimeoutObject []

java.lang.NullPointerException: null
        at org.apache.ignite.internal.processors.cache.GridCacheContext.loadPreviousValue(GridCacheContext.java:1446)
        at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLockFuture.loadMissingFromStore(GridDhtLockFuture.java:1030)
        at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLockFuture.onComplete(GridDhtLockFuture.java:731)
        at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLockFuture.access$900(GridDhtLockFuture.java:82)
        at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLockFuture$LockTimeoutObject.onTimeout(GridDhtLockFuture.java:1133)
        at org.apache.ignite.internal.processors.timeout.GridTimeoutProcessor$TimeoutWorker.body(GridTimeoutProcessor.java:163)
        at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
        at java.lang.Thread.run(Thread.java:748)
{noformat}
because in GridCacheContext.java:1446 tryint to read from cacheCfg local variable, but cacheCfg was zeroed out while cache stopping.
Probability of such error will be significantly lowered if in GridDhtLockFuture.LockTimeoutObject.onTimeout we pass actual value of nodeStopping flag (GridGhtLockFuture:1133) instead of hardcoded false.



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