anton-vinogradov commented on code in PR #13454:
URL: https://github.com/apache/ignite/pull/13454#discussion_r3752319860


##########
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:
   Reverted — the SPI is a static class again and the collected updaters live 
in `SENT_UPDATERS`, upper case as a static final. It is cleared at the start of 
the streaming helper, so each test still begins with an empty one.



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