You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2017/04/13 18:25:52 UTC

ignite git commit: debug messages2

Repository: ignite
Updated Branches:
  refs/heads/ignite-3477-debug 8f63302d3 -> 276043ff6


debug messages2


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

Branch: refs/heads/ignite-3477-debug
Commit: 276043ff60e12ea8b778c4b0ea0d1297be96d6ff
Parents: 8f63302
Author: Alexey Goncharuk <al...@gmail.com>
Authored: Thu Apr 13 21:26:21 2017 +0300
Committer: Alexey Goncharuk <al...@gmail.com>
Committed: Thu Apr 13 21:26:21 2017 +0300

----------------------------------------------------------------------
 .../Cache/CacheAbstractTest.cs                  | 200 +++++++++----------
 1 file changed, 100 insertions(+), 100 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/276043ff/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..737385d 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheAbstractTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheAbstractTest.cs
@@ -1729,21 +1729,21 @@ namespace Apache.Ignite.Core.Tests.Cache
         {
             var cache = Cache();
 
-            TestUtils.RunMultiThreaded(() =>
-            {
-                Random rnd = new Random();
-
-                for (int i = 0; i < 50; i++)
-                {
-                    var futs = new List<Task>();
-
-                    for (int j = 0; j < 10; j++)
-                        futs.Add(cache.PutAsync(rnd.Next(1000), i));
-
-                    foreach (var fut in futs)
-                        fut.Wait();
-                }
-            }, 5);
+//            TestUtils.RunMultiThreaded(() =>
+//            {
+//                Random rnd = new Random();
+//
+//                for (int i = 0; i < 50; i++)
+//                {
+//                    var futs = new List<Task>();
+//
+//                    for (int j = 0; j < 10; j++)
+//                        futs.Add(cache.PutAsync(rnd.Next(1000), i));
+//
+//                    foreach (var fut in futs)
+//                        fut.Wait();
+//                }
+//            }, 5);
         }
 
         [Test]
@@ -1752,91 +1752,91 @@ namespace Apache.Ignite.Core.Tests.Cache
         {
             var cache = Cache<CacheTestKey, BinarizablePerson>();
 
-            const int threads = 10;
-            const int objPerThread = 1000;
-
-            int cntr = 0;
-
-            TestUtils.RunMultiThreaded(() =>
-            {
-                // ReSharper disable once AccessToModifiedClosure
-                int threadIdx = Interlocked.Increment(ref cntr);
-
-                var futs = new List<Task>();
-
-                for (int i = 0; i < objPerThread; i++)
-                {
-                    int key = threadIdx * objPerThread + i;
-
-                    futs.Add(cache.PutAsync(new CacheTestKey(key), new BinarizablePerson("Person-" + key, key)));
-                }
-
-                foreach (var fut in futs)
-                {
-                    fut.Wait();
-
-                    Assert.IsTrue(fut.IsCompleted);
-                }
-            }, threads);
-
-            for (int i = 0; i < threads; i++)
-            {
-                int threadIdx = i + 1;
-
-                for (int j = 0; j < objPerThread; j++)
-                {
-                    int key = threadIdx * objPerThread + i;
-
-                    var p = cache.GetAsync(new CacheTestKey(key)).Result;
-
-                    Assert.IsNotNull(p);
-                    Assert.AreEqual(key, p.Age);
-                    Assert.AreEqual("Person-" + key, p.Name);
-                }
-            }
-
-            cntr = 0;
-
-            TestUtils.RunMultiThreaded(() =>
-            {
-                int threadIdx = Interlocked.Increment(ref cntr);
-
-                for (int i = 0; i < objPerThread; i++)
-                {
-                    int key = threadIdx * objPerThread + i;
-
-                    cache.PutAsync(new CacheTestKey(key), new BinarizablePerson("Person-" + key, key)).Wait();
-                }
-            }, threads);
-
-            cntr = 0;
-
-            TestUtils.RunMultiThreaded(() =>
-            {
-                int threadIdx = Interlocked.Increment(ref cntr);
-
-                var futs = new List<Task<BinarizablePerson>>();
-
-                for (int i = 0; i < objPerThread; i++)
-                {
-                    int key = threadIdx * objPerThread + i;
-
-                    futs.Add(cache.GetAsync(new CacheTestKey(key)));
-                }
-
-                for (int i = 0; i < objPerThread; i++)
-                {
-                    var fut = futs[i];
-
-                    int key = threadIdx * objPerThread + i;
-
-                    var p = fut.Result;
-
-                    Assert.IsNotNull(p);
-                    Assert.AreEqual(key, p.Age);
-                    Assert.AreEqual("Person-" + key, p.Name);
-                }
-            }, threads);
+//            const int threads = 10;
+//            const int objPerThread = 1000;
+//
+//            int cntr = 0;
+//
+//            TestUtils.RunMultiThreaded(() =>
+//            {
+//                // ReSharper disable once AccessToModifiedClosure
+//                int threadIdx = Interlocked.Increment(ref cntr);
+//
+//                var futs = new List<Task>();
+//
+//                for (int i = 0; i < objPerThread; i++)
+//                {
+//                    int key = threadIdx * objPerThread + i;
+//
+//                    futs.Add(cache.PutAsync(new CacheTestKey(key), new BinarizablePerson("Person-" + key, key)));
+//                }
+//
+//                foreach (var fut in futs)
+//                {
+//                    fut.Wait();
+//
+//                    Assert.IsTrue(fut.IsCompleted);
+//                }
+//            }, threads);
+//
+//            for (int i = 0; i < threads; i++)
+//            {
+//                int threadIdx = i + 1;
+//
+//                for (int j = 0; j < objPerThread; j++)
+//                {
+//                    int key = threadIdx * objPerThread + i;
+//
+//                    var p = cache.GetAsync(new CacheTestKey(key)).Result;
+//
+//                    Assert.IsNotNull(p);
+//                    Assert.AreEqual(key, p.Age);
+//                    Assert.AreEqual("Person-" + key, p.Name);
+//                }
+//            }
+//
+//            cntr = 0;
+//
+//            TestUtils.RunMultiThreaded(() =>
+//            {
+//                int threadIdx = Interlocked.Increment(ref cntr);
+//
+//                for (int i = 0; i < objPerThread; i++)
+//                {
+//                    int key = threadIdx * objPerThread + i;
+//
+//                    cache.PutAsync(new CacheTestKey(key), new BinarizablePerson("Person-" + key, key)).Wait();
+//                }
+//            }, threads);
+//
+//            cntr = 0;
+//
+//            TestUtils.RunMultiThreaded(() =>
+//            {
+//                int threadIdx = Interlocked.Increment(ref cntr);
+//
+//                var futs = new List<Task<BinarizablePerson>>();
+//
+//                for (int i = 0; i < objPerThread; i++)
+//                {
+//                    int key = threadIdx * objPerThread + i;
+//
+//                    futs.Add(cache.GetAsync(new CacheTestKey(key)));
+//                }
+//
+//                for (int i = 0; i < objPerThread; i++)
+//                {
+//                    var fut = futs[i];
+//
+//                    int key = threadIdx * objPerThread + i;
+//
+//                    var p = fut.Result;
+//
+//                    Assert.IsNotNull(p);
+//                    Assert.AreEqual(key, p.Age);
+//                    Assert.AreEqual("Person-" + key, p.Name);
+//                }
+//            }, threads);
         }
 
         //[Test]