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

Dawid Weiss commented on SOLR-14033:
------------------------------------

Things work for me just fine on Windows and Linux!

If I enable a full hdfs set of tests with -Dtests.disableHdfs=false and run 
from cmd (not cygwin) then I get thread leaks and this:
{code:java}
java.lang.UnsatisfiedLinkError: 'boolean 
org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(java.lang.String, int)'
 at __randomizedtesting.SeedInfo.seed([5EC7AC29C87F9078]:0)
 at org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Native Method)
 at org.apache.hadoop.io.nativeio.NativeIO$Windows.access(NativeIO.java:645)
 at org.apache.hadoop.fs.FileUtil.canWrite(FileUtil.java:1248) {code}
I think the entire "-Dtests.disableHdfs" thing can be removed and replaced with 
a catch of UnsatisfiedLinkError above in HdfsTestUtil.setupClass. If this link 
error happens and the system is Windows then the test should be 
assumption-ignored. No need for a separate property and all this magic trickery.

> Fix Hadoop tests with security manager
> --------------------------------------
>
>                 Key: SOLR-14033
>                 URL: https://issues.apache.org/jira/browse/SOLR-14033
>             Project: Solr
>          Issue Type: Test
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Hadoop Integration, hdfs, Tests
>            Reporter: Kevin Risden
>            Assignee: Kevin Risden
>            Priority: Major
>             Fix For: 8.4
>
>         Attachments: SOLR-14033.patch
>
>          Time Spent: 6.5h
>  Remaining Estimate: 0h
>
> SOLR-14000 and SOLR-14002 have been cleaning this up. Seeing some HDFS suite 
> failures due to missing nulling out static variables and Hadoop being stupid 
> with the security manager.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to