zhuzhurk commented on a change in pull request #14161:
URL: https://github.com/apache/flink/pull/14161#discussion_r528491085



##########
File path: 
flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/BeamPythonFunctionRunner.java
##########
@@ -250,7 +250,10 @@ public void open(PythonConfig config) throws Exception {
                Struct pipelineOptions = 
PipelineOptionsTranslation.toProto(portableOptions);
 
                if (memoryManager != null && config.isUsingManagedMemory()) {
-                       Preconditions.checkArgument(managedMemoryFraction > 0 
&& managedMemoryFraction <= 1.0);
+                       Preconditions.checkArgument(managedMemoryFraction > 0 
&& managedMemoryFraction <= 1.0,
+                               "The configured managed memory fraction for 
Python worker process must be within (0, 1], was: %s. " +
+                               "It maybe because the consumer type \"Python\" 
was missing or set to 0 for the config option 
\"taskmanager.memory.managed.consumer-weights\"." +

Review comment:
       PYTHON has a default weight 30 so missing setting it will not result in 
this problem.




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


Reply via email to