Jody,

Sure..

http://stackoverflow.com/questions/6626437/why-does-my-compare-method-throw-exception-comparison-method-violates-its-gen
http://dertompson.com/2012/11/23/sort-algorithm-changes-in-java-7/

Not really a java developer, but maybe you need to account for when it
equals like derthomson's blog states?



Thanks,
Robert Justice


On Fri, May 16, 2014 at 11:20 AM, Jody Garnett <[email protected]>wrote:

> Good work, so can you give us a clue on the comparison contract
> violation?
> --
> Jody Garnett
>
> On Thu, May 15, 2014 at 8:27 PM, Robert Justice <[email protected]>wrote:
>
>> Hey guys..we figured it out.   There is definitely a comparison contract
>> violation with the JTS libraries using JDK 1.7 due to the
>> move to default TimSort.   See my previous email which I think is
>> awaiting moderation due to its length.   However, if you get
>> into a situation running this out of a UDF in Hadoop Hive using JDK 1.7,
>> the mistake we made was to
>>
>> set mapred.child.java.opts='-Djava.util.Arrays.useLegacyMergeSort=true
>> -Xmx8g ..and so on';
>>
>> If you put single quotes around the options, the useLegacyMergeSort=true
>> does not take effect.   Simply remove the single
>> quotes and JTS will no longer use TimSort in JDK 1.7 and should have the
>> same memory footprint and performance as it did in
>> JDK 1.6.   Also the comparison contract violation will not occur as
>> MergeSort is not as strict.
>>
>


-- 
Thanks,
---
Robert Justice
Designated Support Engineer
Cloudera, Inc.
[email protected]
direct: (512) 368-3632
mobile: (512) 663-3748
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

Reply via email to