# IGNITE-489 Rename EVT_CACHE_PARTITION_NOT_FULLY_LOADED to 
EVT_CACHE_REBALANCE_PART_DATA_LOST


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

Branch: refs/heads/sprint-3
Commit: 7d8ad6e5d630768a045b997dd128bc086aa246db
Parents: bb5a270
Author: sevdokimov <sevdoki...@gridgain.com>
Authored: Wed Mar 25 16:20:14 2015 +0300
Committer: sevdokimov <sevdoki...@gridgain.com>
Committed: Wed Mar 25 16:20:14 2015 +0300

----------------------------------------------------------------------
 .../core/src/main/java/org/apache/ignite/events/EventType.java   | 2 +-
 .../ignite/internal/processors/cache/GridCacheEventManager.java  | 2 +-
 .../cache/distributed/dht/GridDhtPartitionTopologyImpl.java      | 2 +-
 .../distributed/dht/preloader/GridDhtPartitionDemandPool.java    | 2 +-
 .../distributed/GridCachePartitionNotLoadedEventSelfTest.java    | 4 ++--
 5 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/7d8ad6e5/modules/core/src/main/java/org/apache/ignite/events/EventType.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/events/EventType.java 
b/modules/core/src/main/java/org/apache/ignite/events/EventType.java
index b458344..ce75edb 100644
--- a/modules/core/src/main/java/org/apache/ignite/events/EventType.java
+++ b/modules/core/src/main/java/org/apache/ignite/events/EventType.java
@@ -613,7 +613,7 @@ public interface EventType {
      * NOTE: all types in range <b>from 1 to 1000 are reserved</b> for
      * internal Ignite events and should not be used by user-defined events.
      */
-    public static final int EVT_CACHE_PARTITION_NOT_FULLY_LOADED = 86;
+    public static final int EVT_CACHE_REBALANCE_PART_DATA_LOST = 86;
 
     /**
      * Built-in event type: query executed.

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/7d8ad6e5/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheEventManager.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheEventManager.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheEventManager.java
index 1ff6c71..4d1e166 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheEventManager.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheEventManager.java
@@ -241,7 +241,7 @@ public class GridCacheEventManager extends 
GridCacheManagerAdapter {
         @Nullable String taskName
     ) {
         assert key != null || type == EVT_CACHE_STARTED || type == 
EVT_CACHE_STOPPED
-            || type == EVT_CACHE_PARTITION_NOT_FULLY_LOADED;
+            || type == EVT_CACHE_REBALANCE_PART_DATA_LOST;
 
         if (!cctx.events().isRecordable(type))
             LT.warn(log, null, "Added event without checking if event is 
recordable: " + U.gridEventName(type));

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/7d8ad6e5/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtPartitionTopologyImpl.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtPartitionTopologyImpl.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtPartitionTopologyImpl.java
index 5bb4e11..02d2511 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtPartitionTopologyImpl.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtPartitionTopologyImpl.java
@@ -443,7 +443,7 @@ class GridDhtPartitionTopologyImpl<K, V> implements 
GridDhtPartitionTopology {
                                 changed = true;
 
                                 cctx.events().addEvent(p, null, 
cctx.localNodeId(), (IgniteUuid)null,
-                                    null, 
EVT_CACHE_PARTITION_NOT_FULLY_LOADED, null, false, null,
+                                    null, EVT_CACHE_REBALANCE_PART_DATA_LOST, 
null, false, null,
                                     false, null, null, null);
 
                                 if (log.isDebugEnabled())

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/7d8ad6e5/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionDemandPool.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionDemandPool.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionDemandPool.java
index 4d5b83f..3920e73 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionDemandPool.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionDemandPool.java
@@ -1042,7 +1042,7 @@ public class GridDhtPartitionDemandPool<K, V> {
                     top.own(part);
 
                     cctx.events().addEvent(p, null, cctx.localNodeId(), 
(IgniteUuid)null,
-                        null, EVT_CACHE_PARTITION_NOT_FULLY_LOADED, null, 
false, null,
+                        null, EVT_CACHE_REBALANCE_PART_DATA_LOST, null, false, 
null,
                         false, null, null, null);
 
                     if (log.isDebugEnabled())

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/7d8ad6e5/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCachePartitionNotLoadedEventSelfTest.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCachePartitionNotLoadedEventSelfTest.java
 
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCachePartitionNotLoadedEventSelfTest.java
index 70a7076..6e1f1a1 100644
--- 
a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCachePartitionNotLoadedEventSelfTest.java
+++ 
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCachePartitionNotLoadedEventSelfTest.java
@@ -78,7 +78,7 @@ public class GridCachePartitionNotLoadedEventSelfTest extends 
GridCommonAbstract
 
         PartitionNotFullyLoadedListener lsnr = new 
PartitionNotFullyLoadedListener();
 
-        ignite(2).events().localListen(lsnr, 
EventType.EVT_CACHE_PARTITION_NOT_FULLY_LOADED);
+        ignite(2).events().localListen(lsnr, 
EventType.EVT_CACHE_REBALANCE_PART_DATA_LOST);
 
         Affinity<Integer> aff = ignite(0).affinity(null);
 
@@ -114,7 +114,7 @@ public class GridCachePartitionNotLoadedEventSelfTest 
extends GridCommonAbstract
 
         PartitionNotFullyLoadedListener lsnr = new 
PartitionNotFullyLoadedListener();
 
-        ignite(1).events().localListen(lsnr, 
EventType.EVT_CACHE_PARTITION_NOT_FULLY_LOADED);
+        ignite(1).events().localListen(lsnr, 
EventType.EVT_CACHE_REBALANCE_PART_DATA_LOST);
 
         int key = primaryKey(jcache(0));
 

Reply via email to