You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by av...@apache.org on 2019/12/18 08:12:01 UTC

[ignite] branch eviction-debug updated: Debug

This is an automated email from the ASF dual-hosted git repository.

av pushed a commit to branch eviction-debug
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/eviction-debug by this push:
     new 61feea0  Debug
61feea0 is described below

commit 61feea00d1ee8bb4460296d2e58cc0e6dd2e1a6b
Author: Anton Vinogradov <av...@apache.org>
AuthorDate: Wed Dec 18 11:11:42 2019 +0300

    Debug
    
    Signed-off-by: Anton Vinogradov <av...@apache.org>
---
 .../cache/distributed/dht/topology/GridDhtLocalPartition.java     | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/GridDhtLocalPartition.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/GridDhtLocalPartition.java
index 0eed54a..d82d06d 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/GridDhtLocalPartition.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/topology/GridDhtLocalPartition.java
@@ -453,6 +453,14 @@ public class GridDhtLocalPartition extends GridCacheConcurrentMapImpl implements
 
             long newState = setReservations(state, getReservations(state) + 1);
 
+            int res = getReservations(newState);
+
+            if (res > 500)
+                log.warning("HUGE RESERVATIONS COUNT " + res);
+
+            if (res == 0)
+                log.error("RESERVATIONS OVERFLOW");
+
             if (this.state.compareAndSet(state, newState))
                 return true;
         }