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

sandflee commented on YARN-5371:
--------------------------------

node available resource changes while sorting node. we could do a deep copy of 
node or add -Djava.util.Arrays.useLegacyMergeSort=true to YARN_OPS to use 
mergeSort not TimSort for Collection#sort,  thought?

> FairScheduer ContinuousScheduling thread throws Exception
> ---------------------------------------------------------
>
>                 Key: YARN-5371
>                 URL: https://issues.apache.org/jira/browse/YARN-5371
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.7.2
>            Reporter: sandflee
>            Assignee: sandflee
>
> {noformat}
> java.lang.IllegalArgumentException: Comparison method violates its general 
> contract!
>         at java.util.TimSort.mergeLo(TimSort.java:777)
>         at java.util.TimSort.mergeAt(TimSort.java:514)
>         at java.util.TimSort.mergeCollapse(TimSort.java:441)
>         at java.util.TimSort.sort(TimSort.java:245)
>         at java.util.Arrays.sort(Arrays.java:1512)
>         at java.util.ArrayList.sort(ArrayList.java:1454)
>         at java.util.Collections.sort(Collections.java:175)
>         at 
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler.continuousSchedulingAttempt(FairScheduler.java:1002)
>         at 
> org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler$ContinuousSchedulingThread.run(FairScheduler.java:285)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to