ignite-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ignite] ptupitsyn commented on a change in pull request #6847: IGNITE-12147 Thin client: Fixed partitions response for caches with n…
Date Tue, 10 Sep 2019 19:30:17 GMT
ptupitsyn commented on a change in pull request #6847: IGNITE-12147 Thin client: Fixed partitions
response for caches with n…
URL: https://github.com/apache/ignite/pull/6847#discussion_r322915443
 
 

 ##########
 File path: modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/Cache/AffinityAwarenessTest.cs
 ##########
 @@ -268,6 +268,32 @@ public void CacheGet_RepeatedCall_DoesNotRequestAffinityMapping()
             };
 
             Assert.AreEqual(expectedRequests, requests);
+
+            // Test cache for which affinity awareness is not applicable.
+            var cfg = new CacheClientConfiguration("replicated_cache") {CacheMode = CacheMode.Replicated};
+            var cache = Client.CreateCache<int, int>(cfg);
+
+            cache.Put(1, 1);
+            Client.CreateCache<int, int>("repeat-call-test-replicated");
+            ClearLoggers();
+
+            cache.Get(1);
+            cache.Get(1);
+            cache.Get(1);
+
+            requests = null;
 
 Review comment:
   So we need to verify that for Replicated cache all requests go to a single (default) node,
because affinity awareness does not matter. Let's state this in a comment for clarity.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message