GJL commented on a change in pull request #9271: [FLINK-13384][1.9][runtime] 
Fix back pressure sampling for SourceStreamTask
URL: https://github.com/apache/flink/pull/9271#discussion_r309655776
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java
 ##########
 @@ -674,6 +674,11 @@ else if (current == ExecutionState.CANCELING) {
                                metrics,
                                this);
 
+                       // Make sure the user code classloader is accessible 
thread-locally.
+                       // We are setting the correct context class loader 
before instantiating the invokable
+                       // so that it is available to the invokable during its 
entire lifetime.
+                       
executingThread.setContextClassLoader(userCodeClassLoader);
 
 Review comment:
   I will move this commit to the beginning before pushing to master/release 
branch.

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