[ 
https://issues.apache.org/jira/browse/FLINK-9969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16567861#comment-16567861
 ] 

ASF GitHub Bot commented on FLINK-9969:
---------------------------------------

tillrohrmann commented on a change in pull request #6479: [FLINK-9969][batch] 
Dispose InMemorySorters created by the UnilateralSortMerger
URL: https://github.com/apache/flink/pull/6479#discussion_r207459350
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/UnilateralSortMerger.java
 ##########
 @@ -212,9 +215,39 @@ protected UnilateralSortMerger(MemoryManager 
memoryManager, List<MemorySegment>
                        TypeSerializerFactory<E> serializerFactory, 
TypeComparator<E> comparator,
                        int numSortBuffers, int maxNumFileHandles,
                        float startSpillingFraction, boolean noSpillingMemory, 
boolean handleLargeRecords,
-                       boolean objectReuseEnabled)
-       throws IOException
-       {
+                       boolean objectReuseEnabled) throws IOException {
+               this (
+                       memoryManager,
+                       memory,
+                       ioManager,
+                       input,
+                       parentTask,
+                       serializerFactory,
+                       comparator,
+                       numSortBuffers,
+                       maxNumFileHandles,
+                       startSpillingFraction,
+                       noSpillingMemory,
+                       handleLargeRecords,
+                       objectReuseEnabled,
+                       new DefaultInMemorySorterFactory<>(serializerFactory, 
comparator, THRESHOLD_FOR_IN_PLACE_SORTING));
+       }
+
+       protected UnilateralSortMerger(
 
 Review comment:
   I agree with @TisonKun 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


> Unreasonable memory requirements to complete examples/batch/WordCount
> ---------------------------------------------------------------------
>
>                 Key: FLINK-9969
>                 URL: https://issues.apache.org/jira/browse/FLINK-9969
>             Project: Flink
>          Issue Type: Bug
>          Components: ResourceManager
>    Affects Versions: 1.5.0, 1.5.1, 1.5.2, 1.6.0
>            Reporter: Piotr Nowojski
>            Assignee: Till Rohrmann
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 1.5.3, 1.6.0
>
>         Attachments: yarn_logs
>
>
> setup on AWS EMR:
>  * 5 worker nodes (m4.4xlarge nodes) 
>  * 1 master node (m4.large)
> following command fails with out of memory errors:
> {noformat}
> export HADOOP_CLASSPATH=`hadoop classpath`
> ./bin/flink run -m yarn-cluster -p 20 -yn 5 -ys 4 -ytm 16000 
> examples/batch/WordCount.jar{noformat}
> Only increasing memory over 17.2GB example completes. At the same time after 
> disabling flip6 following command succeeds:
> {noformat}
> export HADOOP_CLASSPATH=`hadoop classpath`
> ./bin/flink run -m yarn-cluster -p 20 -yn 5 -ys 4 -ytm 1000 
> examples/batch/WordCount.jar{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to