Repository: ignite Updated Branches: refs/heads/ignite-4535 [created] a04fff3ca
.NET debug Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/a04fff3c Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/a04fff3c Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/a04fff3c Branch: refs/heads/ignite-4535 Commit: a04fff3caf7891b19ed758ac288a431e109be012 Parents: 36a6cd0 Author: Alexey Goncharuk <alexey.goncha...@gmail.com> Authored: Tue Apr 18 17:36:02 2017 +0300 Committer: Alexey Goncharuk <alexey.goncha...@gmail.com> Committed: Tue Apr 18 17:36:02 2017 +0300 ---------------------------------------------------------------------- .../Cache/CacheAbstractTest.cs | 13 ++++--------- .../Cache/Store/CacheStoreTest.cs | 20 ++++++++------------ .../Config/native-client-test-cache.xml | 1 + 3 files changed, 13 insertions(+), 21 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/a04fff3c/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheAbstractTest.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheAbstractTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheAbstractTest.cs index 490a26a..7ff6619 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheAbstractTest.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheAbstractTest.cs @@ -1098,7 +1098,6 @@ namespace Apache.Ignite.Core.Tests.Cache } [Test] - [Ignore("IGNITE-4535")] public void TestEvict() { var cache = Cache(); @@ -1123,7 +1122,6 @@ namespace Apache.Ignite.Core.Tests.Cache } [Test] - [Ignore("IGNITE-4535")] public void TestEvictAllKeys() { var cache = Cache(); @@ -1474,7 +1472,7 @@ namespace Apache.Ignite.Core.Tests.Cache cache.LocalEvict(keys.Take(2).ToArray()); - //Assert.AreEqual(0, cache.GetLocalSize(CachePeekMode.Onheap)); // TODO: IGNITE-4535 + Assert.AreEqual(0, cache.GetLocalSize(CachePeekMode.Onheap)); Assert.AreEqual(localSize, cache.GetLocalSize(CachePeekMode.All)); cache.Put(keys[2], 3); @@ -1512,10 +1510,9 @@ namespace Apache.Ignite.Core.Tests.Cache // Evict and check peek modes. cache.LocalEvict(new List<int> { keys[0] } ); - // TODO: IGNITE-4535 - //e = cache.GetLocalEntries(CachePeekMode.Onheap); - //CheckEnumerator(e.GetEnumerator(), new List<int> { keys[1] }); - //CheckEnumerator(e.GetEnumerator(), new List<int> { keys[1] }); + e = cache.GetLocalEntries(CachePeekMode.Onheap); + CheckEnumerator(e.GetEnumerator(), new List<int> { keys[1] }); + CheckEnumerator(e.GetEnumerator(), new List<int> { keys[1] }); e = cache.GetLocalEntries(CachePeekMode.All); CheckEnumerator(e.GetEnumerator(), keys); @@ -1576,7 +1573,6 @@ namespace Apache.Ignite.Core.Tests.Cache } [Test] - [Ignore("IGNITE-4535")] public void TestPromote() { var cache = Cache(); @@ -1601,7 +1597,6 @@ namespace Apache.Ignite.Core.Tests.Cache } [Test] - [Ignore("IGNITE-4535")] public void TestPromoteAll() { var cache = Cache(); http://git-wip-us.apache.org/repos/asf/ignite/blob/a04fff3c/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Store/CacheStoreTest.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Store/CacheStoreTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Store/CacheStoreTest.cs index 309c77e..8ecd643 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Store/CacheStoreTest.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Store/CacheStoreTest.cs @@ -198,10 +198,9 @@ namespace Apache.Ignite.Core.Tests.Cache.Store Assert.AreEqual(1, map.Count); - // TODO: IGNITE-4535 - //cache.LocalEvict(new[] { 1 }); + cache.LocalEvict(new[] { 1 }); - //Assert.AreEqual(0, cache.GetSize(CachePeekMode.All)); + Assert.AreEqual(0, cache.GetSize(CachePeekMode.All)); Assert.AreEqual("val", cache.Get(1)); @@ -218,9 +217,8 @@ namespace Apache.Ignite.Core.Tests.Cache.Store CacheTestStore.ThrowError = true; CheckCustomStoreError(Assert.Throws<CacheStoreException>(() => cache.Put(-2, "fail")).InnerException); - // TODO: IGNITE-4535 - //cache.LocalEvict(new[] {1}); - //CheckCustomStoreError(Assert.Throws<CacheStoreException>(() => cache.Get(1)).InnerException); + cache.LocalClear(new[] {1}); + CheckCustomStoreError(Assert.Throws<CacheStoreException>(() => cache.Get(1)).InnerException); CacheTestStore.ThrowError = false; @@ -260,10 +258,9 @@ namespace Apache.Ignite.Core.Tests.Cache.Store Assert.AreEqual(1, v.GetField<int>("_idx")); - // TODO: IGNITE-4535 - //cache.LocalEvict(new[] { 1 }); + cache.LocalEvict(new[] { 1 }); - //Assert.AreEqual(0, cache.GetSize()); + Assert.AreEqual(0, cache.GetSize(CachePeekMode.Onheap)); Assert.AreEqual(1, cache.Get(1).Index); @@ -288,10 +285,9 @@ namespace Apache.Ignite.Core.Tests.Cache.Store Assert.AreEqual(1, v.Index); - // TODO: IGNITE-4535 - //cache.LocalEvict(new[] { 1 }); + cache.LocalEvict(new[] { 1 }); - //Assert.AreEqual(0, cache.GetSize()); + Assert.AreEqual(0, cache.GetSize(CachePeekMode.Onheap)); Assert.AreEqual(1, cache.Get(1).Index); http://git-wip-us.apache.org/repos/asf/ignite/blob/a04fff3c/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Config/native-client-test-cache.xml ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Config/native-client-test-cache.xml b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Config/native-client-test-cache.xml index db07ad5..7a58718 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Config/native-client-test-cache.xml +++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Config/native-client-test-cache.xml @@ -132,5 +132,6 @@ <property name="writeSynchronizationMode" value="FULL_SYNC"/> <property name="backups" value="1"/> <property name="eagerTtl" value="true"/> + <property name="onheapCacheEnabled"/> </bean> </beans>