ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject ignite git commit: debug
Date Tue, 21 Mar 2017 14:33:59 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-3477-debug 4e014d54f -> 22528d12d


debug


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/22528d12
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/22528d12
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/22528d12

Branch: refs/heads/ignite-3477-debug
Commit: 22528d12d2425e4403d87e3b274b22c4b8d370fa
Parents: 4e014d5
Author: sboikov <sboikov@gridgain.com>
Authored: Tue Mar 21 17:33:51 2017 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Tue Mar 21 17:33:51 2017 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/GridCacheMapEntry.java  | 8 ++++++++
 .../processors/cache/distributed/dht/GridDhtCacheEntry.java  | 3 +++
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/22528d12/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheMapEntry.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheMapEntry.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheMapEntry.java
index 395d82d..dfdc20e 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheMapEntry.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheMapEntry.java
@@ -1983,6 +1983,8 @@ public abstract class GridCacheMapEntry extends GridMetadataAwareAdapter
impleme
                     ", val=" + val + ']');
             }
 
+            TestDebugLog.addEntryMessage(key.value(cctx.cacheObjectContext(), false), val,
"clear");
+
             removeValue();
         }
 
@@ -2177,6 +2179,8 @@ public abstract class GridCacheMapEntry extends GridMetadataAwareAdapter
impleme
 
             ver = newVer;
 
+            TestDebugLog.addEntryMessage(key.value(cctx.cacheObjectContext(), false), val,
"invalidate");
+
             removeValue();
 
             onInvalidate();
@@ -2452,6 +2456,8 @@ public abstract class GridCacheMapEntry extends GridMetadataAwareAdapter
impleme
             long delta = expireTime - U.currentTimeMillis();
 
             if (delta <= 0) {
+                TestDebugLog.addEntryMessage(key.value(cctx.cacheObjectContext(), false),
val, "check expired");
+
                 removeValue();
 
                 return true;
@@ -3019,6 +3025,8 @@ public abstract class GridCacheMapEntry extends GridMetadataAwareAdapter
impleme
         if (log.isTraceEnabled())
             log.trace("onExpired clear [key=" + key + ", entry=" + System.identityHashCode(this)
+ ']');
 
+        TestDebugLog.addEntryMessage(key.value(cctx.cacheObjectContext(), false), val, "expired");
+
         removeValue();
 
         if (cctx.events().isRecordable(EVT_CACHE_OBJECT_EXPIRED)) {

http://git-wip-us.apache.org/repos/asf/ignite/blob/22528d12/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtCacheEntry.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtCacheEntry.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtCacheEntry.java
index 0c71731..054c892 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtCacheEntry.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtCacheEntry.java
@@ -39,6 +39,7 @@ import org.apache.ignite.internal.processors.cache.distributed.GridDistributedCa
 import org.apache.ignite.internal.processors.cache.distributed.GridDistributedLockCancelledException;
 import org.apache.ignite.internal.processors.cache.extras.GridCacheObsoleteEntryExtras;
 import org.apache.ignite.internal.processors.cache.transactions.IgniteInternalTx;
+import org.apache.ignite.internal.processors.cache.transactions.TestDebugLog;
 import org.apache.ignite.internal.processors.cache.version.GridCacheVersion;
 import org.apache.ignite.internal.util.lang.GridPlainRunnable;
 import org.apache.ignite.internal.util.tostring.GridToStringInclude;
@@ -599,6 +600,8 @@ public class GridDhtCacheEntry extends GridDistributedCacheEntry {
                         ']');
                 }
 
+                TestDebugLog.addEntryMessage(key.value(cctx.cacheObjectContext(), false),
val, "clear internal");
+
                 removeValue();
 
                 // Give to GC.


Mime
View raw message