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

Sean Mackrory reopened BIGTOP-1589:
-----------------------------------

So I found some issues the other day - you need a correct combination of 
ordering between the different regexes and between different matches of the 
regexes, etc. and I just don't think you can get the wildcards to be evaluated 
at only the right time. So I'm attaching a second attempt. I've tested it with 
multiple versions of Oracle JDK 1.7 and multiple major versions of OpenJDK 
installed and this finally got all of them in the right order at once.

Given how sensitive this is to any kind of gap in testing, I think it'd be 
great to actually have this tried out by more people with various JDKs on 
various distros before we try changing this again, rather than just a +1.

> Prioritization is broken in bigtop-detect-javahome
> --------------------------------------------------
>
>                 Key: BIGTOP-1589
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-1589
>             Project: Bigtop
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 0.8.0
>            Reporter: Sean Mackrory
>            Assignee: Sean Mackrory
>            Priority: Critical
>             Fix For: 0.9.0
>
>         Attachments: 
> 0001-BIGTOP-1589.-Prioritization-is-broken-in-bigtop-dete.patch, 
> 0001-BIGTOP-1589.-Prioritization-is-broken-in-bigtop-dete.patch
>
>
> bigtop-detect-javahome uses 'ls -rd' to sort the JDKs in each category in 
> reverse lexicographical order, but I believe when we switched to having 
> separate variables defined for each major JDK version we overrode that 
> mechanism so older JDKs still take precedence over newer ones. 



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

Reply via email to