dgarus commented on a change in pull request #6990: IGNITE-11992 The visor 
tasks lost permission.
URL: https://github.com/apache/ignite/pull/6990#discussion_r337377704
 
 

 ##########
 File path: 
modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryUtils.java
 ##########
 @@ -360,8 +363,15 @@ public static void scheduleQueryStart(
         final VisorQueryTaskArg arg,
         final GridQueryCancel cancel
     ) {
+        SecurityContext initCtx = 
ignite.context().security().securityContext();
+
         ignite.context().closure().runLocalSafe(() -> {
-            try {
+            IgniteLogger log = ignite.log();
+
+            try(OperationSecurityContext ctx = 
ignite.context().security().withContext(initCtx)) {
+                if (log.isDebugEnabled())
+                    log.debug("Operation started with subject: " + 
ignite.context().security().securityContext().subject());
 
 Review comment:
   NPE if security is not enabled

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


With regards,
Apache Git Services

Reply via email to