ibessonov commented on a change in pull request #6814: IGNITE-12108 TCP 
Communication Metrics ported to a new framework.
URL: https://github.com/apache/ignite/pull/6814#discussion_r324678464
 
 

 ##########
 File path: 
modules/core/src/test/java/org/apache/ignite/testframework/junits/IgniteTestResources.java
 ##########
 @@ -93,19 +97,22 @@ public IgniteTestResources() throws IgniteCheckedException 
{
         else
             log = rootLog.getLogger(getClass());
 
-        this.jmx = prepareMBeanServer();
+        jmx = prepareMBeanServer();
+
+        ctx = new GridTestKernalContext(log);
 
-        this.rsrcProc = new GridResourceProcessor(new 
GridTestKernalContext(this.log));
+        rsrcProc = new GridResourceProcessor(ctx);
     }
 
     /**
      * @param cfg Ignite configuration
      */
     public IgniteTestResources(IgniteConfiguration cfg) throws 
IgniteCheckedException {
         this.cfg = cfg;
-        this.log = rootLog.getLogger(getClass());
-        this.jmx = prepareMBeanServer();
-        this.rsrcProc = new GridResourceProcessor(new 
GridTestKernalContext(this.log, this.cfg));
+        log = rootLog.getLogger(getClass());
 
 Review comment:
   "this." was not necessary so I removed it while adding new field.

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