[ 
https://issues.apache.org/jira/browse/LUCENE-6293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrien Grand updated LUCENE-6293:
---------------------------------
    Attachment: LUCENE-6293.patch

There are two suggested ways to fix the issue, either change the max stack size 
or change the condition upon which consecutive runs are collapsed. I opted for 
the first one which is easier to implement.

Since the code that demonstrates the bug is under ASL 2.0, I reused it for the 
test case.

> TimSort bug
> -----------
>
>                 Key: LUCENE-6293
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6293
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-6293.patch
>
>
> Robert pointed me to 
> http://envisage-project.eu/proving-android-java-and-python-sorting-algorithm-is-broken-and-how-to-fix-it/
>  yesterday which explains how most implementations of TimSort are broken. We 
> should check our TimSorter.



--
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