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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to