stream2000 commented on code in PR #9395:
URL: https://github.com/apache/hudi/pull/9395#discussion_r1288537503


##########
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/client/common/HoodieFlinkEngineContext.java:
##########
@@ -102,12 +102,12 @@ public RuntimeContext getRuntimeContext() {
 
   @Override
   public <I, O> List<O> map(List<I> data, SerializableFunction<I, O> func, int 
parallelism) {
-    return 
data.stream().parallel().map(throwingMapWrapper(func)).collect(Collectors.toList());
+    return stream(data, 
parallelism).map(throwingMapWrapper(func)).collect(Collectors.toList());
   }

Review Comment:
   > @stream2000, the parallelism of `stream().parallel()` is only 
`Runtime.getRuntime().availableProcessors()`
   
   So actually the parallelism of `availableProcessors` will cause OOM? If I 
configure the parallelism just as `Runtime.getRuntime().availableProcessors()` 
we still get OOM right? Correct me if I'm wrong~ 
   
   



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

To unsubscribe, e-mail: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to