ashokkumar-allu commented on code in PR #18585:
URL: https://github.com/apache/hudi/pull/18585#discussion_r3286186476


##########
hudi-common/src/main/java/org/apache/hudi/common/engine/HoodieLocalEngineContext.java:
##########
@@ -93,7 +162,8 @@ public <T> HoodieData<T> parallelize(List<T> data, int 
parallelism) {
 
   @Override
   public <I, O> List<O> map(List<I> data, SerializableFunction<I, O> func, int 
parallelism) {
-    return 
data.stream().parallel().map(throwingMapWrapper(func)).collect(toList());
+    // parallelism is advisory; actual pool size is fixed at class-load time 
via FORK_JOIN_POOL

Review Comment:
   map() is back to stream().parallel() (common pool). mapParallel() remains 
the explicit classloader-safe API —only validators call it, so the fix is 
scoped correctly.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to