You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2019/02/11 15:44:40 UTC

[GitHub] dmitrievanthony commented on a change in pull request #6079: IGNITE-11234: Add fillCache method to DataStreamGenerator

dmitrievanthony commented on a change in pull request #6079: IGNITE-11234: Add fillCache method to DataStreamGenerator
URL: https://github.com/apache/ignite/pull/6079#discussion_r255559169
 
 

 ##########
 File path: modules/ml/src/test/java/org/apache/ignite/ml/util/generators/DataStreamGeneratorTest.java
 ##########
 @@ -158,6 +171,39 @@ public void testAsDatasetBuilder() throws Exception {
         checkDataset(N / 2, b3, v -> (Double)v.label() < 0);
     }
 
+    /** */
+    @Test
+    public void testCacheFilling() {
+        IgniteConfiguration configuration = new IgniteConfiguration().setPeerClassLoadingEnabled(true);
+        String cacheName = "TEST_CACHE";
+        CacheConfiguration<UUID, LabeledVector<Double>> cacheConfiguration =
+            new CacheConfiguration<UUID, LabeledVector<Double>>(cacheName)
+                .setAffinity(new RendezvousAffinityFunction(false, 10));
+        int datasetSize = 5000;
+
+        try (Ignite ignite = Ignition.start(configuration)) {
 
 Review comment:
   If it's okay to start Ignite manually in unit tests? I just thought that unit tests might be run in parallel and in this case we'll get unpredictable behavior.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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