You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by iv...@apache.org on 2015/07/16 11:26:24 UTC
[28/51] [abbrv] incubator-ignite git commit: # More info in asserts.
# More info in asserts.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/f5a09f4d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/f5a09f4d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/f5a09f4d
Branch: refs/heads/ignite-961
Commit: f5a09f4d1b2e912b2de25ffc669ca205d34ad0ce
Parents: aa2d7cb
Author: sboikov <sb...@gridgain.com>
Authored: Tue Jul 14 11:39:29 2015 +0300
Committer: sboikov <sb...@gridgain.com>
Committed: Tue Jul 14 11:39:29 2015 +0300
----------------------------------------------------------------------
.../internal/processors/cache/GridCacheContext.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/f5a09f4d/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
index eb813c3..aec08c6 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
@@ -533,7 +533,7 @@ public class GridCacheContext<K, V> implements Externalizable {
public void incrementPublicSize(GridCacheMapEntry e) {
assert deferredDelete();
assert e != null;
- assert !e.isInternal();
+ assert !e.isInternal() : e;
cache.map().incrementSize(e);
@@ -551,7 +551,7 @@ public class GridCacheContext<K, V> implements Externalizable {
public void decrementPublicSize(GridCacheMapEntry e) {
assert deferredDelete();
assert e != null;
- assert !e.isInternal();
+ assert !e.isInternal() : e;
cache.map().decrementSize(e);
@@ -765,7 +765,7 @@ public class GridCacheContext<K, V> implements Externalizable {
* @return Partition topology.
*/
public GridDhtPartitionTopology topology() {
- assert isNear() || isDht() || isColocated() || isDhtAtomic();
+ assert isNear() || isDht() || isColocated() || isDhtAtomic() : cache;
return isNear() ? near().dht().topology() : dht().topology();
}
@@ -774,7 +774,7 @@ public class GridCacheContext<K, V> implements Externalizable {
* @return Topology version future.
*/
public GridDhtTopologyFuture topologyVersionFuture() {
- assert isNear() || isDht() || isColocated() || isDhtAtomic();
+ assert isNear() || isDht() || isColocated() || isDhtAtomic() : cache;
GridDhtTopologyFuture fut = null;
@@ -1599,9 +1599,9 @@ public class GridCacheContext<K, V> implements Externalizable {
*/
public void onDeferredDelete(GridCacheEntryEx entry, GridCacheVersion ver) {
assert entry != null;
- assert !Thread.holdsLock(entry);
+ assert !Thread.holdsLock(entry) : entry;
assert ver != null;
- assert deferredDelete();
+ assert deferredDelete() : cache;
cache.onDeferredDelete(entry, ver);
}
@@ -1759,7 +1759,7 @@ public class GridCacheContext<K, V> implements Externalizable {
* @throws IgniteCheckedException If failed.
*/
public CacheObject fromOffheap(long valPtr, boolean tmp) throws IgniteCheckedException {
- assert config().getMemoryMode() == OFFHEAP_TIERED || config().getMemoryMode() == OFFHEAP_VALUES;
+ assert config().getMemoryMode() == OFFHEAP_TIERED || config().getMemoryMode() == OFFHEAP_VALUES : cacheCfg;
assert valPtr != 0;
return ctx.cacheObjects().toCacheObject(this, valPtr, tmp);