daradurvs commented on a change in pull request #8431:
URL: https://github.com/apache/ignite/pull/8431#discussion_r530929735



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/processors/service/ServiceInfo.java
##########
@@ -37,6 +39,9 @@
     /** */
     private static final long serialVersionUID = 0L;
 
+    /** Context. */
+    private final GridKernalContext ctx;

Review comment:
       We can handle it in `IgniteServiceProcessor` in places where 
`registeredServices#put`is called.
   Adding to `registeredServices` is the first place when Ignite's node 
receives `ServiceInfo`
   
   We can introduce a new method:
   ```
   private void registerService(ServiceInfo desc) {
       desc.setContext(ctx);
       registeredServices.put(desc.serviceId(), desc);
   }
   ```
   
   What do you think?




----------------------------------------------------------------
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:
[email protected]


Reply via email to