Vladsz83 commented on code in PR #13454:
URL: https://github.com/apache/ignite/pull/13454#discussion_r3752294523


##########
modules/core/src/test/java/org/apache/ignite/internal/processors/datastreamer/DataStreamerImplSelfTest.java:
##########
@@ -664,12 +735,33 @@ private CacheConfiguration cacheConfiguration() {
         return cacheCfg;
     }
 
+    /** A custom receiver: unlike the built-in ones, it is sent with the 
requests. */
+    private static class TestReceiver implements StreamReceiver<Object, 
Object> {
+        /** */
+        private static final long serialVersionUID = 0L;
+
+        /** {@inheritDoc} */
+        @Override public void receive(IgniteCache<Object, Object> cache, 
Collection<Map.Entry<Object, Object>> entries) {
+            for (Map.Entry<Object, Object> e : entries)
+                cache.put(e.getKey(), e.getValue());
+        }
+    }
+
     /**
      * Simulate stale (not up-to-date) topology
      */
-    private static class StaleTopologyCommunicationSpi extends 
TcpCommunicationSpi {
+    private class StaleTopologyCommunicationSpi extends TcpCommunicationSpi {

Review Comment:
   Hm. `needStaleTop` is already `static` however. Let;s revert to the statics



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to