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

Chris Nauroth commented on HADOOP-19852:
----------------------------------------

```
[ERROR] org.apache.hadoop.fs.tosfs.object.TestObjectRangeInputStream.testSeek 
-- Time elapsed: 0.016 s <<< ERROR!
java.lang.IllegalStateException: Failed to set environment variable
        at 
org.apache.hadoop.fs.tosfs.util.TestUtility.setSystemEnv(TestUtility.java:120)
        at 
org.apache.hadoop.fs.tosfs.object.ObjectStorageTestBase.setUp(ObjectStorageTestBase.java:59)
        at java.base/java.lang.reflect.Method.invoke(Method.java:569)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field 
private final java.util.Map java.util.Collections$UnmodifiableMap.m accessible: 
module java.base does not "opens java.util" to unnamed module @7fab8c68
        at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at 
java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
        at 
org.apache.hadoop.fs.tosfs.util.TestUtility.setSystemEnv(TestUtility.java:116)
        ... 4 more
```


> hadoop-tos test failures due to reflection failure
> --------------------------------------------------
>
>                 Key: HADOOP-19852
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19852
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: test, tos
>    Affects Versions: 3.5.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>            Priority: Major
>
> hadoop-tos tests fail for me locally due to a reflection error. The reason is 
> that hadoop-tos/pom.xml overrides the maven-surefire-plugin JVM `<argLine>` 
> twice, dropping the `--add-opens` that the enables the reflective access for 
> short-term compatibility in Java 17. I have a local patch that removes the 
> redundant override, and the tests pass.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to