You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Yongjun Zhang (JIRA)" <ji...@apache.org> on 2016/05/12 21:57:13 UTC

[jira] [Created] (HDFS-10396) Using -diff option with DistCp may get "Comparison method violates its general contract" exception

Yongjun Zhang created HDFS-10396:
------------------------------------

             Summary: Using -diff option with DistCp may get "Comparison method violates its general contract" exception
                 Key: HDFS-10396
                 URL: https://issues.apache.org/jira/browse/HDFS-10396
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Yongjun Zhang
            Assignee: Yongjun Zhang


Using -diff option get the following exception due to a bug in the comparison operator:

{code}
16/04/21 14:34:18 WARN tools.DistCp: Failed to use snapshot diff for distcp
java.lang.IllegalArgumentException: Comparison method violates its general contract!
	at java.util.TimSort.mergeHi(TimSort.java:868)
	at java.util.TimSort.mergeAt(TimSort.java:485)
	at java.util.TimSort.mergeForceCollapse(TimSort.java:426)
	at java.util.TimSort.sort(TimSort.java:223)
	at java.util.TimSort.sort(TimSort.java:173)
	at java.util.Arrays.sort(Arrays.java:659)
	at org.apache.hadoop.tools.DistCpSync.moveToTarget(DistCpSync.java:293)
	at org.apache.hadoop.tools.DistCpSync.syncDiff(DistCpSync.java:261)
	at org.apache.hadoop.tools.DistCpSync.sync(DistCpSync.java:131)
	at org.apache.hadoop.tools.DistCp.execute(DistCp.java:163)
	at org.apache.hadoop.tools.DistCp.run(DistCp.java:122)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
	at org.apache.hadoop.tools.DistCp.main(DistCp.java:432)
16/04/21 14:34:18 ERROR tools.DistCp: Exception encountered 

{code}





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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org