chesnokoff commented on code in PR #13540:
URL: https://github.com/apache/ignite/pull/13540#discussion_r3978934509


##########
modules/compatibility/src/test/java/org/apache/ignite/compatibility/testframework/testcontainers/IgniteClusterContainer.java:
##########
@@ -30,21 +31,52 @@ public class IgniteClusterContainer implements Startable {
     private final List<IgniteContainer> containers;
 
     /** Network. */
-    private final Network net = Network.newNetwork();
+    private final Network net;
+
+    /** Image name. */
+    private final String imageName;
+
+    /** Consistent ID's. */
+    private final List<String> consistentIds;
 
     /**
      * @param imageName Image name.
      * @param consistentIds Consistent ID's.
      */
-    public IgniteClusterContainer(String imageName, List<String> 
consistentIds) throws Exception {
+    public IgniteClusterContainer(String imageName, List<String> 
consistentIds) {
+        this.imageName = imageName;
+        this.consistentIds = consistentIds;
+
+        net = Network.newNetwork();
         containers = new ArrayList<>(consistentIds.size());
+    }

Review Comment:
   Can we keep `net` initialization at field declaration? It does not depend on 
constructor arguments



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