Remove entry from on-heap locks map if it was removed from off-heap
@@ -999,6 +999,8 @@ public class GridDhtLocalPartition extends GridCacheConcurrentMapImpl implements
ctx.database().checkpointReadLock();
try {if (cached instanceof GridDhtCacheEntry && ((GridDhtCacheEntry)cached).clearInternal(clearVer, extras)) {
+ removeEntry(cached);
+
if (rec) {
hld.cctx.events().addEvent(cached.partition(),
cached.key(),
