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

Robert Muir commented on LUCENE-3927:
-------------------------------------

The hack in the patch is not hardcoded at all IBM: it checks if the 
impersonation actually works too.
{code}
Constants.JAVA_VENDOR.startsWith("IBM") && (!(Codec.forName("Lucene3x") 
instanceof PreFlexRWCodec));
{code}

For other JREs we still throw an assertion error saying to fix your classpath.

But again, we don't necessarily need to commit this patch. Again more 
interesting is the fact that,
with the patch, if i run tests I get 'too many open files' from 
TestShardSearching, and I get test
failures from Solr's CSV support...

                
> allow running trunk tests with IBM JRE
> --------------------------------------
>
>                 Key: LUCENE-3927
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3927
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: general/test
>    Affects Versions: 4.0
>            Reporter: Robert Muir
>         Attachments: LUCENE-3927.patch
>
>
> This is currently not possible because of how the SPI loader works,
> we cannot simulate Lucene3x codec with PreFlexRWCodec.
> But we should still allow basic testing (even though we cannot test preflex).
> After hacking around the issue, I get interesting fails with this JRE so I 
> think its worth it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to