dianfu commented on a change in pull request #11719: [FLINK-17124][python] Fix
The PyFlink Job runs into infinite loop if the UDF file imports job code.
URL: https://github.com/apache/flink/pull/11719#discussion_r407837733
##########
File path:
flink-python/src/main/java/org/apache/flink/python/env/ProcessPythonEnvironmentManager.java
##########
@@ -190,6 +192,13 @@ public String createRetrievalToken() throws IOException {
// set BOOT_LOG_DIR.
env.put("BOOT_LOG_DIR", baseDirectory);
+ // disable the launching of gateway server to prevent from this
dead loop:
+ // launch UDF worker -> import udf -> import job code
+ // ^ | (If the job
code is executed unexpectedly)
Review comment:
Should also update the comments `(If the job code is executed unexpectedly)`
----------------------------------------------------------------
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